3
1
Back

// Joy of Tech // Joy of Tech elseif (strpos($article['link'], 'www.robot-hugs.com/') !== FALSE) { // Timothy Winchester (People I Know foreach ($imgs as $img) { $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } // CTRL+ALT+DEL 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='comic-1']//img", $article); } Various updates, additions Various updates, additions elseif (strpos($article["link"], "www.pilotside.us/comic/") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); // elseif (strpos($article["link"], "chainsawsuit.com/comic/") !== FALSE && strpos($article["title"], "Comic:") !== FALSE) { strpos($article["title"], "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); elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { // Timothy Winchester (People I Know) elseif (strpos($article['link'], 'http://www.geekculture.com/joyoftech/') !== FALSE) { //also get blog //also get blog $entries = $xpath->query("//div[@id='blarg']/div[last()]"); foreach ($entries as $entry) { $article['content'] .= "

$orig_content

"; //also append the blarg post because that's small, interesting, $xpath = $this->get_xpath_dealie($article['link']); // $xpath = $this->get_xpath_dealie($article['link']); $orig_content = strip_tags($article['content']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='singleImage']/img[@class='magicfields']", $article); $article['content'] = $doc->saveXML(); // Questionable Content (cleanup) $article['content'] .= "
$orig_content
"; } // Joy of Tech elseif (strpos($article['link'], 'campcomic.com/comic/') !== FALSE) { elseif (strpos($article['link'], 'threepanelsoul.com/2') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $orig_content = strip_tags($article['content']); $article['content.

New Pull Request