3
1
Back

Splits and labels to get what game it's about } // Breaking Cat News // Breaking Cat News elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { $doc = NULL) { foreach ($article['debug'] as $msg) { $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, '/comics/') and @class='comic_image']", $article); } // Two Lumps elseif (strpos($article['link'], 'www.geekculture.com/joyoftech/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic-img']//img", $article); // $img_tag = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); } // Gunnerkrigg Court elseif (strpos($article['link'], 'threepanelsoul.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@class="webcomic-image"]//img)', $article); } /* absolute URL is ready! */ return $scheme.'://'.$abs; } function get_img_tags($xpath, $query, $article){ /* dirty absolute URL */ $abs = "$host$path/$rel"; function api_version.

New Pull Request