3
1
Back

. $article['content']; $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); } // SatW elseif (strpos($article["link"], "www.phdunknown.com/index.php?id=") !== FALSE) { // Timothy Winchester (People I Know) elseif (strpos($article['link'], 'campcomic.com/comic/') !== FALSE) { // $xpath = $this->get_xpath_dealie($article['link']); // Joy of Tech elseif (strpos($article['link'], 'questionablecontent') !== FALSE) { $doc = new DOMXpath($doc); $bread = $xpath->query("//a[contains(@href, 'bonus-panel')]")->item(0); $bread_page_url = $bread->getAttribute('href'); $xpath = $this->get_xpath_dealie($article['link']); elseif (strpos($article['link'], 'leasticoulddo.com/comic') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '//td/img[contains(@src, "/comics/images/")]', $article); } // Eat That Toast elseif (strpos($article["link"], "berkeleymews.com/") !== FALSE && strpos($article["title"], "Comic:") !== FALSE) { // $img_tag = $this->get_img_tags($xpath, '//p[@class="Maintext"]//img[contains(@src, "joyimages")]', $article); } Dead Philosophers Dead Philosophers elseif (strpos($article['link'], 'leasticoulddo.com/comic') !== FALSE) { //noop $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); $article['content'] = preg_replace("@@", '', $article['content']); } // Softer World (alt tags), Dinosaur Comics (alt tags+blog), CAD, attempt at OOTS (but that one fails due to referer checks elseif (strpos($article['content'], 'invisiblebread.com/2') !== FALSE) { $aftercomic = $this->get_img_tags($xpath, '(//img[@id="main-comic"])', $article); } //Sites that provide images and just need alt tags textified. Elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); // Girls with Slingshots elseif (strpos($article['link'], 'threepanelsoul.com/comic/') !== FALSE) { // PhD Unknown elseif (strpos($article["link"], "poorlydrawnlines.com/comic/") !== FALSE && // Cyanide & Happiness elseif (strpos(strtolower($article['link']), 'giantitp.com/comics/') !== FALSE) .

New Pull Request