3
1
Back

$bread_page_url = $bread->getAttribute('href'); $xpath = $this->get_xpath_dealie($article['link']); // Joy of Tech elseif (strpos($article['link'], 'breakingcatnews.com/comic/') !== FALSE) { elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='comicpage']//img[contains(@src, 'ENG_')]", $article); } // Two Lumps // Breaking Cat News elseif (strpos($article['link'], 'threepanelsoul.com/2') !== FALSE) { // Awkward Zombie $entries = $xpath->query("//div[@id='blarg']/div[last()]"); foreach ($entries as $entry){ $orig_src = $entry->getAttribute('src'); $result_html .= $entry->ownerDocument->saveXML($entry); if (GDORN_DEBUG && $article['debugging']) { foreach ($imgs as $img) { $article['content'] = $this->get_img_tags($xpath, '//td/img[contains(@src, "/comics/images/")]', $article); // Dead Philosophers $doc->loadHTML($article['content']); // Dinosaur Comics Cleanup elseif (strpos($article['link'], 'www.robot-hugs.com/') !== FALSE) { //also append the blarg post because that's small.

New Pull Request