3
1
Back

Solution to getting the image. Elseif (strpos($article['link'], 'www.geekculture.com/joyoftech/') !== FALSE) { strpos($article["title"], "Comic:") !== FALSE) { $xpath = new DOMXPath($doc); } function get_img_tags($xpath, $query, $article) { function init($host) { /** * When debugging or writing a new fetcher, use the ARTICLE_FILTER hook. */ // Girls with Slingshots $entries = $xpath->query("//span[@class='rss-content']"); foreach ($entries as $entry){ $article['content'] .= "$orig_content"; // Awkward Zombie elseif (strpos($article['link'], 'amultiverse.com/comic/') !== FALSE) { elseif (strpos($article['content'], 'invisiblebread.com/2') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, '//p[@class="Maintext"]//img[contains(@src, "joyimages")]', $article); } // Something Positive elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { elseif (strpos($article['link'], 'www.timothywinchester.com/2') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); // Joy of Tech elseif (strpos($article['link'], 'cad-comic.com/sillies/') !== FALSE) { $doc = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this.

New Pull Request