3
1
Back

2015-02-25 15:05:54 -08:00 // Poorly Drawn Lines elseif (strpos($article["link"], "sorcery101.net/the-city-between/thebettertofindyouwith") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='singleImage']/img[@class='magicfields']", $article); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); } // Wondermark (alt tag already present foreach($imgs as $img){ foreach ($imgs as $img) { if (strpos($article['link'], 'eatthattoast.com/comic/') !== FALSE) { // Awkward Zombie elseif (strpos($article['link'], 'www.geekculture.com/joyoftech/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='singleImage']/img[@class='magicfields']", $article); $article['content'] = $this->get_img_tags($xpath, "//div[@id='content']/img", $article); $article['content'] .= "
" . $msg . ""; $img_tag = $this->get_img_tags($xpath, "//div[@class='comicpage']//img[contains(@src, 'uploads')]", $article); elseif (strpos($article['link'], 'campcomic.com/comic/') !== FALSE) { $doc = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ // Questionable Content (cleanup) $article['content'] .= "
ID: " . $img->getAttribute('title') . ""; } } //Sites that provide images and just need alt tags if both exist achewood, gwss fix, fix for when invisible bread has no bread $article['content'] = $matches[1]; } } // Something Positive } if ($rel[0]=='#' || $rel[0]=='?') { return $rel; } extract(parse_url($base)); $path .

New Pull Request