From: Andrew Dolgov Date: Fri, 14 Aug 2015 05:51:53 +0000 (+0300) Subject: af_comics: add pvponline X-Git-Tag: 16.3~132 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=610914d4d65402b774a59d34f8febc74463b53c6;p=tt-rss.git af_comics: add pvponline --- diff --git a/plugins/af_comics/filters/af_comics_pvp.php b/plugins/af_comics/filters/af_comics_pvp.php new file mode 100644 index 00000000..2094e684 --- /dev/null +++ b/plugins/af_comics/filters/af_comics_pvp.php @@ -0,0 +1,33 @@ +loadHTML($res); + + if ($doc) { + $xpath = new DOMXPath($doc); + $basenode = $xpath->query('//section[@class="comic-art"]')->item(0); + + if ($basenode) { + $article["content"] = $doc->saveXML($basenode); + } + } + + return true; + } + + return false; + } +} +?>