3
1
Back

"//div[@id='comic-img']//img", $article); // $article['content'] = $this->get_img_tags($xpath, "//div[@id='comicbody']//img", $article); $article['content'] = $matches[1]; $img = preg_replace("@height=\"\d+\"@", "", $img); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comicFrame"])', $article); Added The Trenches; yet more code style tweaking // The Oatmeal elseif (strpos($article['link'], 'amultiverse.com/comic/') !== FALSE) { // Breaking Cat News elseif (strpos($article['link'], 'cad-comic.com/sillies/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $aftercomic = $this->get_img_tags($xpath, "//div[@class='img-comic-container']//img", $article); } // Joy of Tech elseif (strpos($article['link'], 'dilbert.com/strip/') !== FALSE) { // Eat That Toast bog-standard example // Penny Arcade if (strpos($article["link"], "penny-arcade.com") !== FALSE && // SatW.

New Pull Request