3
1
Back

A comic, just a borked RSS feed elseif (strpos($article['link'], 'breakingcatnews.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic-img']//img", $article); // Pain Train alt tag, Alice Grove (get bigger image) elseif (strpos($article['link'], 'http://www.achewood.com/index.php?date=') !== FALSE) { $doc = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $doc->saveHTML(); function get_img_tags($xpath, $query, $article, $base_url=NULL) { function get_img_tags($xpath, $query, $article) { $entries = $xpath->query("//span[@class='rss-content']"); // Wondermark (alt tag elseif (strpos($article['link'], '//theoatmeal.com/comics/') !== FALSE) { // Doghouse Diaries, which has broken alt tags textified. Elseif (strpos($article['content'], 'invisiblebread.com/2') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, "//img[@class='ksc' and contains(@src, 'png')]", $article); } // Camp Weedonwantcha foreach ($entries as $entry) { $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); // $img_tag .

New Pull Request