3
1
Back

OotS uses some kind of referer check which prevents fetch_file_contents() from retrieving the image. // $article['content'] = $this->get_img_tags($xpath, "//div[@id='content']/img", $article); $article['content'] = $this->get_img_tags($xpath, "//figure[@class='photo-hires-item']//img", $article); } Clean up code formatting; added a few comics; standardized appending alt/title text under images (extra useful for non-browser users elseif (strpos($article["link"], "satwcomic.com/") !== FALSE) { $article['content'] = preg_replace("@@", '', $article['content']); } // Timothy Winchester (People I Know elseif (strpos($article['link'], 'cad-comic.com/cad/') !== FALSE) { // $img_tag = $this->get_img_tags($xpath, '//td/img[contains(@src, "/comics/images/")]', $article); // Dead Philosophers $doc->loadHTML($article['content']); // Dinosaur Comics (alt tags+blog), CAD, attempt at OOTS (but that one fails due to referer checks Dead Philosophers // Dead Philosophers 2015-02-25 15:05:54 -08:00 // Poorly Drawn Lines elseif (strpos($article["link"], "trenchescomic.com/comic/post/") !== FALSE ) { // Awkward Zombie elseif (strpos($article['link'], 'amultiverse.com/comic/') !== FALSE) { elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { // Breaking Cat News // Breaking Cat News // Breaking Cat News elseif (strpos($article['link'], 'gunnerkrigg.com/?p') !== FALSE) { // Girls with Slingshots $xpath = $this->get_xpath_dealie($article['link']); $aftercomic = $this->get_img_tags($xpath, "//img[starts-with(@src, 'sp') and contains(@src, 'comics')]", $article); } // Dead Philosophers Dead Philosophers.

New Pull Request