3
1
Back

$matches)){ $article['content'] = $this->get_img_tags($xpath, "//p[@id='comic_body']//a//img", $article); } // Poly In Pictures elseif (strpos($article['link'], 'campcomic.com/comic/') !== FALSE) { if (preg_match("@.*()@", $article['content'], $matches)) { $article['content'] = $this->get_img_tags($xpath, "//img[@class='ksc' and contains(@src, 'comics')]", $article); } // Chainsawsuit elseif (strpos($article["link"], "trenchescomic.com/comic/post/") !== FALSE || strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE){ //also get blog entry $entries = $xpath->query("//div[@id='blarg']/div[last()]"); foreach ($entries as $entry) { $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; } } $entries = $xpath->query("//div[@id='blarg']/div[last()]"); foreach ($entries as $entry){ $article['content'] .= "

" . $entry->textContent . "

"; $article['content'] .= "
$orig_content
"; } // Something Positive elseif (strpos($article['link'], 'breakingcatnews.com/comic/') !== FALSE) { //also get blog entry $entries = $xpath->query("//div[@class='entry']"); foreach ($entries as $entry) { $article['content'] .= "

" . $entry->textContent . "

"; } } $entries = $xpath->query("//span[@class='rss-content']"); // Wondermark (alt tag already present elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE) { $xpath = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } function get_content($link) { $html = $fetch_last_error_code; From 6298fd8aa365e8141485a8d6ad3ff5ab00de1b64 Mon Sep 17 00:00:00 2001 Subject: [PATCH] More random files c6741b48f0ef8a6e69ecbca1a47bc4f4b481e2a3 Notes from debugging.

New Pull Request