3
1
Back

$this->get_img_tags($xpath, "//div[@id='comic-img']//img", $article); $alt_text = trim($img->getAttribute('alt')); if (!$alt_text || $alt_text == $article['title'] || strpos($article['title'], $alt_text) !== false){ // there's both alt and title texts, they're both different, use both. } elseif (strpos($article["link"], "www.pilotside.us/comic/") !== FALSE) { $article['content'] = $img; } } Dead Philosophers // Dead Philosophers elseif (strpos($article['content'], 'wondermark.com/c') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, '/comics/') and @class='comic_image']", $article); } // Least I Could Do (wtf image size? Elseif (strpos($article['link'], 'www.geekculture.com/joyoftech/') !== FALSE) { elseif (strpos($article['link'], 'http://www.achewood.com/index.php?date=') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='comicpage']//img[contains(@src, 'ENG_')]", $article); } // Something Positive elseif (strpos($article['link'], 'www.timothywinchester.com/2') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, "//div[@id='comicbody']//img", $article); elseif (strpos($article['link'], 'questionablecontent') !== FALSE) { // Something Positive // Timothy Winchester (People I Know) elseif (strpos($article['link'], 'polyinpictures.com/comic/') !== FALSE) { //also get the blog $entries = $xpath->query("//div[@id='blarg']/div[last()]"); foreach ($entries as $entry){ $article['content'] .= "
Alt: $alt_text
"; } } //Sites that provide images and just need alt tags elseif (strpos($article['link'], 'amultiverse.com/comic/') !== FALSE) { // Three Panel Soul elseif (strpos($article['link'], 'awkwardzombie.com/index.php?comic') !== FALSE) { From e8295830c4756e41fd19dc7b9fd77b84addfd373 Mon Sep 17.

New Pull Request