3
1
Back

"//div[@class='comic-wrap']", $article); //Sites that provide images and just need alt tags elseif (strpos($article['link'], 'breakingcatnews.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, 'sp') and contains(@src, 'png')]", $article); $article['content'] = $this->get_img_tags($xpath, "//p[@id='comic_body']//img", $article); } // Dinosaur Comics Cleanup elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE ) { // Robot Hugs elseif (strpos($article['link'], 'http://www.geekculture.com/joyoftech/') !== FALSE) { // Three Panel Soul elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { $xpath = new DOMDocument(); $doc->loadHTML($html); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } // Pain Train (to get alt tags textified. $article['content'] .= "

" . $entry->ownerDocument->saveXML($entry) . "

"; } } if ($rel[0]=='#' || $rel[0]=='?') { $path = preg_replace('#/[^/]*$#', '', $path); /* replace .

New Pull Request