3
1
Back

F835c1b52669c83e3b7ee8bb7127766f514de308 Mon Sep 17 00:00:00 2001 Subject: [PATCH] Assorted updates elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { elseif (strpos($article['link'], 'questionablecontent') !== FALSE) { // Two Lumps elseif (strpos($article['link'], 'girlswithslingshots.com/comic/') !== FALSE) { $doc = new DOMXpath($doc); $bread = $xpath->query("//a[contains(@href, 'bonus-panel')]")->item(0); $bread_page_url = $bread->getAttribute('href'); $xpath = $this->get_xpath_dealie($article['link']); // there's both alt and title texts, they're both different, use both. $title_element = $doc->createElement("i", $alt_text); } elseif (strpos($alt_text, $title_text) !== false){ // there's both alt and title texts, they're both different, use both. } elseif ($alt_text == $title_text){ } elseif ($alt_text == $article['title'] || strpos($article['title'], $alt_text) !== False) { if ($img->getAttribute('title')) { // CTRL+ALT+DEL Sillies // Two Lumps // Breaking Cat News elseif (strpos($article['link'], 'paintraincomic.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '//td/img[contains(@src, "/comics/images/")]', $article); } elseif ($alt_text == $title_text){ } elseif (strpos($article["link"], "eatthattoast.com/comic/") !== FALSE && // SatW // SatW elseif (strpos($article["link"], "chainsawsuit.com/comic/") !== FALSE ) { $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'], 'gunnerkrigg.com/?p') !== FALSE) { //no-op function rel2abs($rel, $base) { Various updates, additions Updated LICD, alter alt-textify to handle both title and alt tags textified. Function rel2abs($rel, $base) { $rel = trim($rel); if (parse_url($rel, PHP_URL_SCHEME) != '' || substr($rel, 0, 2) == '//') { return $this->mangle_article($article); } function get_content($link) .

New Pull Request