Labels Milestones
Back$this->get_img_tags($xpath, "//figure[@class='photo-hires-item']//img", $article); } // Jesus & Mo elseif (strpos($article['link'], 'http://www.geekculture.com/joyoftech/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); } elseif (strpos($article["link"], "poorlydrawnlines.com/comic/") !== FALSE ) { // Drugs and Wires drugs & wires, pilotside elseif (strpos($article["link"], "eatthattoast.com/comic/") !== FALSE && // SatW elseif (strpos($article["link"], "chainsawsuit.com/comic/") !== FALSE ) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='comicpage']//img[contains(@src, 'Strip')]", $article); $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, '/comics/') and @class='comic_image']", $article); } // Questionable Content (cleanup elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { // Eat That Toast bog-standard example // Breaking Cat News elseif (strpos($article['link'], 'polyinpictures.com/comic/') !== FALSE) { $article['content'] .= "
" . $entry->textContent . "
"; } } //Sites that provide images and just need alt tags elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { elseif (strpos($article['link'], 'girlswithslingshots.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $img; } } /* absolute URL */ $abs = "$host$path/$rel"; /* replace. New Pull Request