3
1
Back

382 lines elseif (strpos($article["link"], "poorlydrawnlines.com/comic/") !== FALSE && // Cyanide & Happiness elseif (strpos($article['link'], 'girlswithslingshots.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='comicpage']//img[contains(@src, 'uploads')]", $article); elseif (strpos($article['link'], 'amultiverse.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $matches[1]; $article['content'] = $matches[1]; $article['content'] = $this->get_img_tags($xpath, "//div[@class='timeline-description']", $article); $article['content'] = $this->get_img_tags($xpath, "//div[@class='comicpage']//img[contains(@src, 'uploads')]", $article); } Some comics supported Some comics supported if (strpos($article["link"], "penny-arcade.com") !== FALSE ) { // Breaking Cat News elseif (strpos($article['link'], 'jesusandmo.net') !== FALSE) { Gunnerkrigg and cleanup of alt-tag-only sites Clean up code formatting; added a few comics; standardized appending alt/title text Added The Trenches; yet more code style tweaking // The Better To Find You With (http://sorcery101.net/ elseif (strpos($article["link"], "berkeleymews.com/") !== FALSE ) { $img_tag = $this->get_img_tags($xpath, "//img[starts-with(@src, '/comics/') and @class='comic_image']", $article); } // Camp Weedonwantcha // Camp Weedonwantcha elseif (strpos($article['link'], 'gunnerkrigg.com/?p') !== FALSE) { // Wondermark (alt tag elseif (strpos($article['link'], 'http://www.achewood.com/index.php?date=') !== FALSE) { elseif (strpos($article['link'], 'polyinpictures.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='img-comic-container']//img", $article); } // Chainsawsuit elseif (strpos($article["link"], "berkeleymews.com/") !== FALSE ) { $xpath = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ foreach ($imgs as $img) { if ($rel[0] == '/') { $path .

New Pull Request