From: Andrew Dolgov Date: Wed, 12 Feb 2014 09:32:44 +0000 (+0400) Subject: af_comics: fix for PA new layout X-Git-Tag: 1.12~48 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=abe24e397783ccff66f83536cb4ea46c7bb68f5f;p=tt-rss.git af_comics: fix for PA new layout --- diff --git a/plugins/af_comics/init.php b/plugins/af_comics/init.php index 5d3ccf07..993ddb7c 100644 --- a/plugins/af_comics/init.php +++ b/plugins/af_comics/init.php @@ -210,11 +210,7 @@ class Af_Comics extends Plugin { if ($doc) { $xpath = new DOMXPath($doc); - $entries = $xpath->query('(//div[@class="post comic"])'); - - foreach ($entries as $entry) { - $basenode = $entry; - } + $basenode = $xpath->query('(//div[@id="comicFrame"])')->item(0); if ($basenode) { $article["content"] = $doc->saveXML($basenode);