From 945ecd7db66203ce117c1818b49e8204e92ceabe Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 12 Dec 2014 12:23:33 +0300 Subject: [PATCH] fix explosm comics plugin --- plugins/af_comics/filters/af_comics_explosm.php | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/plugins/af_comics/filters/af_comics_explosm.php b/plugins/af_comics/filters/af_comics_explosm.php index cba7ad0a..30b7e24c 100644 --- a/plugins/af_comics/filters/af_comics_explosm.php +++ b/plugins/af_comics/filters/af_comics_explosm.php @@ -17,18 +17,7 @@ class Af_Comics_Explosm extends Af_ComicFilter { if ($doc) { $xpath = new DOMXPath($doc); - $entries = $xpath->query('(//img[@src])'); // we might also check for img[@class='strip'] I guess... - - $matches = array(); - - foreach ($entries as $entry) { - - if (preg_match("/(http:\/\/.*\/db\/files\/Comics\/.*)/i", $entry->getAttribute("src"), $matches)) { - - $basenode = $entry; - break; - } - } + $basenode = $xpath->query('(//img[@id="main-comic"])')->item(0); if ($basenode) { $article["content"] = $doc->saveXML($basenode); -- 2.39.5