3
1
Back

(cleanup) // Questionable Content (cleanup) elseif (strpos($article['link'], 'threepanelsoul.com/comic/') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, "//div[@id='cc-comicbody']//img", $article); } // Cyanide & Happiness elseif (strpos($article["link"], "explosm.net/comics") !== FALSE) { elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); //and sometimes necessary for old fogeys like me to get what game it's about $article['content'] .= "" . $entry->textContent . ""; $img_tag = $this->get_img_tags($xpath, "//div[@class='comicpage']//img[contains(@src, 'Strip')]", $article); // And get blog $entries = $xpath->query("//div[@id='blarg']/div[last()]"); foreach ($entries as $entry) { $article['content'] = $matches[1]; // Least I Could Do (wtf image size? Elseif (strpos($article['link'], 'leasticoulddo.com/comic') !== FALSE) { // Poly In Pictures elseif (strpos($article['link'], 'polyinpictures.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//figure[@class='photo-hires-item']//img", $article); } Added The Trenches; yet more code style tweaking elseif (strpos($article["link"], "chainsawsuit.com/comic/") !== FALSE && strpos($article["title"], "Comic:") !== FALSE) { elseif (strpos($article['link'], 'awkwardzombie.com/index.php?comic') !== FALSE) { //noop elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { $doc = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } // Timothy Winchester (People I Know elseif (strpos($article['link'], 'amultiverse.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content.

New Pull Request