3
1
Back

Switch } else { return $this->mangle_article($article); } function get_img_tags($xpath, $query, $article){ /* dirty absolute URL */ $abs = "$host$path/$rel"; /* replace '//' or '/./' or '/foo/../' with '/' */ for($n=1; $n>0; $abs=preg_replace($re, '/', $abs, -1, $n)) { } //Sites that provide images and just need alt tags elseif (strpos($article['link'], 'http://www.achewood.com/index.php?date=') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); elseif (strpos($article["link"], "manicpixienightmaregirls.com/") !== FALSE) { // Cyanide & Happiness elseif (strpos($article['link'], 'cad-comic.com/sillies/') !== FALSE) { function rel2abs($rel, $base) { function get_img_tags($xpath, $query, $article) { $entries = $xpath->query("//span[@class='rss-content']"); foreach ($entries as $entry) { $article['content'] = $this->get_img_tags($xpath, "//div[@class='singleImage']/img[@class='magicfields']", $article); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/noscript/img", $article); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { //No matches //No matches //No matches if ($img->getAttribute('title')) { $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; // only keep everything starting at the first if(preg_match("@.*(saveHTML(); elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, "//div[@class='img-comic-container']//img", $article); } /* OotS uses some kind of referer.

New Pull Request