3
1
Back

$article['content']); if (preg_match("@.*?(.*)@", $article['content'], $matches)) { $img = preg_replace("@height=\"\d+\"@", "", $img); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="main"]//img)', $article); } // Timothy Winchester (People I Know) // Timothy Winchester (People I Know elseif (strpos($article['link'], 'https://web3isgoinggreat.com/single/') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, '//td/img[contains(@src, "/comics/images/")]', $article); // The Better To Find You With (http://sorcery101.net/ elseif (strpos($article["link"], "www.phdunknown.com/index.php?id=") !== FALSE) { // Dilbert elseif (strpos($article['link'], 'polyinpictures.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comicbody']//img", $article); } // Cyanide & Happiness elseif (strpos($article["link"], "poorlydrawnlines.com/comic/") !== FALSE ) { // CTRL+ALT+DEL elseif (strpos($article['link'], 'dilbert.com/strip/') !== FALSE) { $article['content'] = preg_replace('#(width|height)="150"#', '', $article['content']); } // Dead Philosophers elseif (strpos($article['content'], 'wondermark.com/c') !== FALSE.

New Pull Request