3
1
Back

0; // The Better To Find You With (http://sorcery101.net/) elseif (strpos($article["link"], "manicpixienightmaregirls.com/") !== FALSE) { // only keep everything starting at the first if(preg_match("@.*()@", $article['content'], $matches)){ function get_img_tags($xpath, $query, $article){ $entries = $xpath->query("//div[@class='entry']"); // VG Cats elseif (strpos($article["content"], "//www.vgcats.com/comics/?strip_id=") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//p[@id='comic_body']//img", $article); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); } // Cyanide & Happiness elseif (strpos($article["link"], "eatthattoast.com/comic/") !== FALSE ) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@class="webcomic-image"]//img)', $article); } //Sites that provide images and just need alt tags elseif (strpos($article['link'], 'alicegrove.com') !== FALSE) { // Something Positive elseif (strpos($article['link'], 'girlswithslingshots.com/comic/') !== FALSE) { Clean up code formatting; added a few more 'simple' Unseen Servant # Primary source: Two switch.

New Pull Request