3
1
Back

A4 48790c2294 Fix for when invisiblebread has no bread elseif (strpos($article['link'], 'www.timothywinchester.com/2') !== FALSE) { // Dead Philosophers 2015-02-25 15:05:54 -08:00 // Poorly Drawn Lines // Berkeley Mews elseif (strpos($article["link"], "trenchescomic.com/comic/post/") !== FALSE || strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE){ //also get the blog $entries = $xpath->query("//div[@id='signoff-wrapper']"); // Pain Train (to get alt tags elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); // Scenes From A Multiverse (to get alt tags if both exist achewood, gwss fix, fix for when invisiblebread has no bread elseif (strpos($article['link'], 'polyinpictures.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, '(//div[@class="post"]//img)', $article); // Pain Train (to get alt tag elseif (strpos($article['link'], 'www.timothywinchester.com/2') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, '(//div[@class="container"]//center//img)', $article); } // Scenes From A Multiverse (to get alt tags) elseif (strpos($article['link'], 'cad-comic.com/cad/') !== FALSE) { // Dilbert elseif (strpos($article['link'], 'dead-philosophers.com/?p') !== FALSE) { //also append the blarg post because that's small, interesting, //also append the blarg post because that's small, interesting, $entries = $xpath->query("//div[@id='signoff-wrapper']"); // Pain Train alt tag, Alice Grove (get bigger image) // Alice Grove (get bigger image) elseif (strpos($article['link'], 'www.geekculture.com/joyoftech/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, 'sp') and contains(@src, 'png')]", $article); $article['content'] = preg_replace('#(/[0-9-]+)-150x150\.gif#', '$1.gif', $article['content']); $article['content'] = $this->get_img_tags($xpath, "//img[@class='ksc' and contains(@src, 'png')]", $article); $article['content'] .= "
Alt.

New Pull Request