]> git.wh0rd.org Git - tt-rss.git/commitdiff
af_comics: fix for PA new layout
authorAndrew Dolgov <noreply@fakecake.org>
Wed, 12 Feb 2014 09:32:44 +0000 (13:32 +0400)
committerAndrew Dolgov <noreply@fakecake.org>
Wed, 12 Feb 2014 09:32:44 +0000 (13:32 +0400)
plugins/af_comics/init.php

index 5d3ccf07229231bfd63b8dfe15d95c6c3d98d6c9..993ddb7cdcbdc99b47c5ada97855fc47b8e2f01e 100644 (file)
@@ -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);