3
1
Back

Note next to transistors to save on panel wires ttrss-plugin- _comics/init.php 264 lines define('ADD_IDS', True); define('ADD_IDS', False); define("GDORN_DEBUG", False); class _comics extends Plugin { catch (Exception $e) { $article['content'] = $this->get_img_tags($xpath, "//p[@id='comic_body']//img", $article); } Dead Philosophers elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { // XKCD (alt tags we don't need to call out for) // Dead Philosophers elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE) { // Eat That Toast bog-standard example elseif (strpos($article['link'], 'threepanelsoul.com/2') !== FALSE) { // $img_tag = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } // Least I Could Do (wtf image size? Elseif (strpos($article['link'], 'leasticoulddo.com/comic') !== FALSE) { // Wondermark (alt tag already present) // Wondermark (alt tag already present) elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE || strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE){ //also get blog $entries = $xpath->query("//div[@id='signoff-wrapper']"); // Pain Train (to get alt tags textified. Elseif (strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $matches[1]; $img = preg_replace("@height=\"\d+\"@", "", $img); $article['content'] = preg_replace('#(/[0-9-]+)-150x150\.gif#', '$1.gif', $article['content']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='comic-wrap']//img[@class='comic']", $article); } Clean up code formatting; added a few comics; standardized appending alt/title text under images (extra useful for non-browser users if (preg_match("@.*(get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '//td/img[contains(@src, "/comics/images/")]', $article); } Dead Philosophers Dead Philosophers elseif (strpos($article['link'], 'amultiverse.com/comic/') !== FALSE) { $doc = new DOMDocument.

New Pull Request