3
1
Back

Tech elseif (strpos($article['link'], '//theoatmeal.com/comics/') !== FALSE) { // Cyanide & Happiness // Cyanide & Happiness elseif (strpos($article['link'], 'cad-comic.com/cad/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $orig_content = strip_tags($article['content']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic-1']//img", $article); // And get blog $entries = $xpath->query("//div[@id='signoff-wrapper']"); } //Sites that provide images and just need alt tags if (preg_match("@.*()@", $article['content'], $matches)) { $article['content'] = preg_replace('#(/[0-9-]+)-150x150\.gif#', '$1.gif', $article['content']); $article['content'] = $this->get_img_tags($xpath, '(//div[@class="post"]//img)', $article); // And get blog $entries = $xpath->query("//div[@class='entry']"); foreach ($entries as $entry){ $article['content'] .= "Error processing via _comics plugin!
" . $e->getMessage(); } } if(ADD_IDS){ $article['content'] .= "
Error processing via _comics plugin!" . $e->getMessage(); } } // Dinosaur Comics (alt tags+blog), CAD, attempt at OOTS (but that one fails due to referer checks Dead Philosophers $doc->loadHTML($article['content']); // Dinosaur Comics.

New Pull Request