summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <fox@fakecake.org>2024-11-26 20:15:34 +0300
committerAndrew Dolgov <fox@fakecake.org>2024-11-26 20:15:34 +0300
commit3dd71e41a19f70fbee322d3cdbc695128963086e (patch)
treef7a7e88d5d30eafb57622e8722d564e68c27755c
parentb045da0e5e353e149b2df966028c6b22c13ebe9d (diff)
also deal with The Oatmeal posts, not just comics
-rw-r--r--plugins/af_comics/filters/af_comics_theoatmeal.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/af_comics/filters/af_comics_theoatmeal.php b/plugins/af_comics/filters/af_comics_theoatmeal.php
index 4dd4003c8..b57250232 100644
--- a/plugins/af_comics/filters/af_comics_theoatmeal.php
+++ b/plugins/af_comics/filters/af_comics_theoatmeal.php
@@ -16,7 +16,7 @@ class Af_Comics_TheOatmeal extends Af_ComicFilter {
if ($res && $doc->loadHTML($res)) {
$xpath = new DOMXPath($doc);
- $basenode = $xpath->query('//div[@id="comic"]//img')->item(0);
+ $basenode = $xpath->query('//div[@class="post"]|//div[@id="comic"]//img')->item(0);
if ($basenode) {
$article["content"] = $doc->saveHTML($basenode);