3
1
Back

1.016) hide (end 1.016 2.54 (end -1.016 -2.54 (offset 0) hide From 5a4d5850276107dae545a96ba13aec19af1bdbba Mon Sep 17 00:00:00 2001 Subject: [PATCH] Add VCA shaek layout ttrss-plugin- _comics/init.php 356 lines class _comics extends Plugin { 'Yet more stupid-simple comic-fetching.', ' '); } function get_content($link) { /** * When debugging or writing a new fetcher, use the ARTICLE_FILTER hook. } function mangle_article($article) { // Timothy Winchester (People I Know) elseif (strpos($article['link'], 'gunnerkrigg.com/?p') !== FALSE) { elseif (strpos($article['link'], 'polyinpictures.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $img_tag . $article['content']; } // Cyanide & Happiness elseif (strpos($article["link"], "drugsandwires.fail/dnwcomic/") !== FALSE) { $article['content'] = $this->get_img_tags($xpath, "//div[@class='comicpage']//img[contains(@src, 'uploads')]", $article); elseif (strpos($article['link'], 'campcomic.com/comic/') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, '//td/img[contains(@src, "/comics/images/")]', $article); // Dead Philosophers Dead Philosophers elseif (strpos($article['link'], 'cad-comic.com/cad/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); // Girls with Slingshots elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE) { elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { // CTRL+ALT+DEL // CTRL+ALT+DEL elseif (strpos($article['link'], 'threepanelsoul.com/2') !== FALSE) { // Something Positive 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); } /* absolute URL */ /* replace '//' or '/./' or '/foo/../' with '/' */ $re = array('#(/\.?/)#', '#/(?!\.\.)[^/]+/\.\./#'); for($n=1.

New Pull Request