3
1
Back

78 lines From 1aa48a179aa2fb0f2688991cbdf145da4cfe15db Mon Sep 17 00:00:00 2001 Subject: [PATCH] Add simplest muscescore example Samurai ttrss-plugin- _comics/init.php 356 lines class _comics extends Plugin { function hook_render_article($article) { try { return $this->mangle_article($article); } function get_img_tags($xpath, $query, $article) { function get_img_tags($xpath, $query, &$article, $base_url=NULL) { /* absolute URL */ $abs = "$host$path/$rel"; /* replace '//' or '/./' or '/foo/../' with '/' */ $re = array( '#(/\.?/)#', '#/(?!\.\.)[^/]+/\.\./#' ); for ($n = 1; // [0:No, 1:Yes] // Would you like a notch removed from it // the first elseif (strpos($article['link'], 'amultiverse.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comicbody']//img", $article); } // Chainsawsuit // Poorly Drawn Lines elseif (strpos($article["link"], "poorlydrawnlines.com/comic/") !== FALSE || strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE){ $xpath = $this->get_xpath_dealie($article['link']); $article['content'] .

New Pull Request