3
1
Back

$this->get_img_tags($xpath, '(//div[@id="comicbody"]//img)', $article) . $article['content']; // $article['content'] = $this->get_img_tags($xpath, "//div[@class='comicpage']//img[contains(@src, 'uploads')]", $article); elseif (strpos($article['link'], 'breakingcatnews.com/comic/') !== FALSE) { $article['content'] .= "Alt: " . $article['id']; } return $article; } function rel2abs($rel, $base $path = ''; function rel2abs($rel, $base) { if (preg_match("@.*(get_img_tags($xpath, "//div[@id='comicbody']//img", $article); } // Awkward Zombie elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); // $article['content'] = $this->get_img_tags($xpath, "//figure[@class='photo-hires-item']//img", $article); } // Least I Could Do (wtf image size? If(preg_match("@.*()@", $article['content'], $matches)){ $img = $matches[1]; $img = $matches[1]; } } // Invisible Bread (make the bread visible) $article['content'] = $this->get_img_tags($xpath.

New Pull Request