From 610914d4d65402b774a59d34f8febc74463b53c6 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 14 Aug 2015 08:51:53 +0300 Subject: [PATCH] af_comics: add pvponline --- plugins/af_comics/filters/af_comics_pvp.php | 33 +++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 plugins/af_comics/filters/af_comics_pvp.php 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; + } +} +?> -- 2.39.5