3
1
Back

From 96e9dd144019309f3e33f1daf66ec448c4e2d994 Mon Sep 17 00:00:00 2001 Subject: [PATCH] Fix for when invisiblebread has no bread $article['content'] = $this->get_img_tags($xpath, '//td/img[contains(@src, "/comics/images/")]', $article); $xpath = $this->get_xpath_dealie($article['link']); Updated LICD, alter alt-textify to handle both title and alt tags elseif (strpos($article['link'], 'www.geekculture.com/joyoftech/') !== FALSE) { elseif (strpos($article['link'], 'paintraincomic.com/comic/') !== FALSE) { // Drugs and Wires elseif (strpos($article["link"], "trenchescomic.com/comic/post/") !== FALSE && // Cyanide & Happiness elseif (strpos($article["link"], "satwcomic.com/") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '//td/img[contains(@src, "/comics/images/")]', $article); // Berkeley Mews elseif (strpos($article["link"], "explosm.net/comics") !== FALSE) { $doc = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ if ($img->getAttribute('title')) { $article['content'] .= "

" . $entry->ownerDocument->saveXML($entry) . "

"; elseif (strpos($article["link"], "explosm.net/comics") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/noscript/img", $article); } Assorted updates Assorted updates elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { $article['content'] .= "

" . $entry->textContent . "

"; } } Clean up code formatting; added.

New Pull Request