3
1
Back

Brackets "{}" replaced with your fetcher, use the ARTICLE_FILTER hook. } function init($host) { // $img_tag = $this->get_img_tags($xpath, "//img[contains(@src, 'sp') and contains(@src, 'comics')]", $article); } // Something Positive if (strpos($article['link'], 'eatthattoast.com/comic/') !== FALSE) { // Eat That Toast bog-standard example // Breaking Cat News elseif (strpos($article['link'], 'breakingcatnews.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//p[@id='comic_body']//img", $article); $article['content'] = $this->get_img_tags($xpath, '//p[@class="Maintext"]//img[contains(@src, "joyimages")]', $article); } // Dinosaur Comics (alt tags+blog), CAD, attempt at OOTS (but that one fails due to referer checks elseif (strpos($article['link'], 'www.geekculture.com/joyoftech/') !== FALSE) { From ef87dc7d41f5e6b2301711b754023b93f16ed69f Mon Sep 17 00:00:00.

New Pull Request