3
1
Back

Different histories. // Achewood (alt tag) elseif (strpos($article['link'], 'paintraincomic.com/comic/') !== FALSE) { elseif (strpos(strtolower($article['link']), 'giantitp.com/comics/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@class="container"]//center//img)', $article); } // Girls with Slingshots elseif (strpos($article['content'], 'invisiblebread.com/2') !== FALSE) { $xpath = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='img-comic-container']//img", $article); } // Joy of Tech // Joy of Tech elseif (strpos($article['link'], 'dead-philosophers.com/?p') !== FALSE) { elseif (strpos($article['link'], 'threepanelsoul.com/2') !== FALSE) { // XKCD (alt tags we don't need to call out for foreach ($imgs as $img) { if (!$alt_text && !$title_text) { $new_element->appendChild($para_element); if ($alt_text && !$title_text){ } /* OotS uses some kind of referer check which prevents fetch_file_contents() from retrieving the image. Elseif (strpos($article['link'], 'awkwardzombie.com/index.php?comic') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, "//div[@class='comicpage']//img[contains(@src, 'ENG_')]", $article); } // Timothy.

New Pull Request