3
1
Back

$matches)){ if (preg_match("@.*(get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='imgdiv']//img", $article); //also get blog $entries = $xpath->query("//div[@id='blarg']/div[last()]"); foreach ($entries as $entry) { $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comicbody"]//img)', $article) . $article['content']; } // Two Lumps elseif (strpos($article['link'], 'amultiverse.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = str_replace('comicsthumbs', 'comics', $article['content']); foreach ($entries as $entry){ $article['content'] .= "

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

"; } } // SBMC elseif (strpos($article["link"], "sorcery101.net/the-city-between/thebettertofindyouwith") !== FALSE) { elseif (strpos($article["link"], "drugsandwires.fail/dnwcomic/") !== FALSE) { elseif (strpos($article['link'], 'leasticoulddo.com/comic') !== FALSE) { elseif (strpos($article['content'], 'invisiblebread.com/2') !== FALSE) { Gunnerkrigg and cleanup of alt-tag-only sites elseif (strpos($article['link'], 'www.geekculture.com/joyoftech/') !== FALSE) { // Three Panel Soul elseif (strpos($article['link'], 'paintraincomic.com/comic/') !== FALSE) { $aftercomic = $this->get_img_tags($xpath, '(//div[@id="aftercomic"]//img)', $article); $article['content'] = $img; } } } // Camp Weedonwantcha elseif (strpos($article['link'], 'dead-philosophers.com/?p') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $img_tag . $article['content']; $article['content'] = $this->get_img_tags($xpath, '(//img[@id="main-comic"])', $article); } // Poly In Pictures } // Least I Could Do (wtf image size? If (preg_match("@.*()@", $article['content'], $matches)) { $img = $matches[1]; $img = preg_replace("@height=\"\d+\"@", "", $img); $article['content'] .= "
$orig_content
"; } // Scenes From A Multiverse (to get alt tags) // Scenes From A Multiverse (to get alt tag) elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { $doc .

New Pull Request