3
1
Back

Little extra is probably around the top if you are happy with your fetcher, use the first } // Dinosaur Comics (alt tags+blog), CAD, attempt at OOTS (but that one fails due to referer checks elseif (strpos($article['link'], 'http://www.geekculture.com/joyoftech/') !== FALSE) { // Breaking Cat News // Something Positive Added BCN, Something Positive // Timothy Winchester (People I Know elseif (strpos($article['link'], 'awkwardzombie.com/index.php?comic') !== FALSE) { // Invisible Bread (make the bread visible) $article['content'] = $this->get_img_tags($xpath, "//img[contains(@src, 'sp') and contains(@src, 'jpg')]", $article, "http://vgcats.com/comics/"); // Invisible Bread (make the bread visible) $article['content'] = $doc->saveHTML(); function get_img_tags($xpath, $query, $article) { $entries = $xpath->query($query); $result_html = ''; } /* dirty absolute URL is ready! */ Assorted updates elseif (strpos($article['link'], 'www.timothywinchester.com/2') !== FALSE) { elseif (strpos($article['link'], 'paintraincomic.com/comic/') !== FALSE) { // Doghouse Diaries, which has broken alt tags if both exist 2016-06-10 20:51:03 -07:00 77735c00cc Add radio shaek with cv2 version From a295bd71525185b616796bece6c52d455905c9b6 Mon Sep 17 00:00:00 2001 Subject: [PATCH] Some comics supported elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@class="webcomic-image"]//img)', $article); } // Cyanide & Happiness elseif (strpos(strtolower($article['link']), 'giantitp.com/comics/') !== FALSE) { $doc = new DOMXpath($doc); $imgs = $xpath->query('//img'); $alt_text = trim($img->getAttribute('alt')); if (!$alt_text || strpos($article['title'], $alt_text) !== false){ $text_element = $doc->createElement("i", $title_text); } elseif (strpos(strtolower($article['link']), 'giantitp.com/comics/') !== FALSE) { //noop elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { $xpath = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/noscript/img", $article); $article['content'] .= "" . $entry->ownerDocument->saveXML($entry) . "

"; } } // CTRL+ALT+DEL elseif (strpos($article['link'], 'polyinpictures.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic-1']//img", $article); } /* absolute URL */ $abs = "$host$path/$rel"; /* replace '//' or '/./' or '/foo.

New Pull Request