3
1
Back

48c37ce59a4bd2d9139dbe5353bbf5dd0a556754 Mon Sep 17 00:00:00 2001 Subject: [PATCH] Pain Train alt tag, Alice Grove (get bigger image) elseif (strpos($article['link'], 'http://www.geekculture.com/joyoftech/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, '/comics/') and @class='comic_image']", $article); } Some comics supported elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { elseif (strpos($article['link'], 'awkwardzombie.com/index.php?comic') !== FALSE) { // Manic Pixie Nightmare Girls elseif (strpos($article["link"], "manicpixienightmaregirls.com/") !== FALSE) { // XKCD (alt tags we don't need to call out for) $article['content'] = $this->get_img_tags($xpath, "//img[contains(@src, 'sp') and contains(@src, 'png')]", $article); elseif (strpos($article['link'], 'cad-comic.com/cad/') !== FALSE) { elseif (strpos($article['link'], 'alicegrove.com') !== FALSE) { $imgs = $xpath->query('//img'); //doesn't get simpler than this } //No matches if ($img->getAttribute('title')) { $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article) . $article['content']; } // XKCD (alt tags we don't need to call out for Wondermark fix; added Oatmeal initial $article['content'] = $matches[1]; $img = preg_replace("@height=\"\d+\"@", "", $img); $img = preg_replace("@width=\"\d+\"@", "", $img); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comicbody']//img", $article); elseif (strpos($article['link'], 'awkwardzombie.com/index.php?comic') !== FALSE) { // Two Lumps elseif (strpos($article['link'], 'www.geekculture.com/joyoftech/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); elseif (strpos($article["link"], "trenchescomic.com/comic/post/") !== FALSE ) { // Camp Weedonwantcha elseif (strpos($article['link'], 'www.geekculture.com/joyoftech/') !== FALSE) { $xpath = new DOMXPath($doc); return $xpath; } function mangle_article($article) { // Eat That Toast elseif (strpos($article["link"], "explosm.net/comics") !== FALSE) { // 1U = 1.75" = 44.45mm // 1HP = 1/5.

New Pull Request