3
1
Back

$entry) { $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); } // Least I Could Do (wtf image size?) elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { // Two Lumps elseif (strpos($article['link'], 'cad-comic.com/cad/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='content']/img", $article); } Invisible Bread, Softer World (alt tags), Dinosaur Comics Cleanup elseif (strpos($article['link'], 'www.geekculture.com/joyoftech/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $doc->saveXML(); } Some comics supported 2015-02-23 04:25:44 -08:00 * Okay, instead of A4 Updates from real TL0x4s // Joy of Tech elseif (strpos($article['link'], 'leasticoulddo.com/comic') !== FALSE) { // Gunnerkrigg Court elseif (strpos($article['link'], 'gunnerkrigg.com/?p') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $doc->saveXML(); } // Three Panel Soul elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ $article['content'] .= "

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

"; // only keep everything starting at the first if(preg_match("@.*()@", $article['content'], $matches)){ function get_img_tags($xpath, $query, $article){ $entries = $xpath->query("//span[@class='rss-content']"); foreach ($entries as $entry){ $article['content'] .

New Pull Request