diff options
| author | Andrew Dolgov <fox@fakecake.org> | 2024-11-26 20:15:34 +0300 |
|---|---|---|
| committer | Andrew Dolgov <fox@fakecake.org> | 2024-11-26 20:15:34 +0300 |
| commit | 3dd71e41a19f70fbee322d3cdbc695128963086e (patch) | |
| tree | f7a7e88d5d30eafb57622e8722d564e68c27755c /plugins/af_comics | |
| parent | b045da0e5e353e149b2df966028c6b22c13ebe9d (diff) | |
also deal with The Oatmeal posts, not just comics
Diffstat (limited to 'plugins/af_comics')
| -rw-r--r-- | plugins/af_comics/filters/af_comics_theoatmeal.php | 2 |
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); |