3
1
Back

$this->get_img_tags($xpath, '(//div[@id="main"]//img)', $article); } // Cyanide & Happiness // Cyanide & Happiness elseif (strpos($article["link"], "manicpixienightmaregirls.com/") !== FALSE) { // Girls with Slingshots elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); } /* OotS uses some kind of referer check which prevents fetch_file_contents() from retrieving the image. Elseif (strpos($article['link'], 'http://www.achewood.com/index.php?date=') !== FALSE) { $doc = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='singleImage']/img[@class='magicfields']", $article); elseif (strpos($article['link'], 'amultiverse.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//figure[@class='photo-hires-item']//img", $article); // Timothy Winchester (People I Know elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic-1']//img", $article); } // Least I Could Do (wtf image size?) elseif (strpos($article['link'], 'gunnerkrigg.com/?p') !== FALSE) { // Girls with Slingshots // Girls with Slingshots elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE) { $article['content'] .= "

$orig_content

"; //also append the blarg post because that's small, interesting, $entries = $xpath->query($query); $result_html = ''; foreach ($entries as $entry){ $article['content'] .= "
Alt: .

New Pull Request