Merge pull request 'Fix af_comics for explosm after site changes' (#68) from ekalin/tt-rss:fix_explosm into master

Reviewed-on: https://git-gitea.tt-rss.org/fox/tt-rss/pulls/68
This commit is contained in:
fox 2022-03-28 20:33:14 +03:00
commit ea4bbd7a46
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ class Af_Comics_Explosm extends Af_ComicFilter {
if (@$doc->loadHTML(UrlHelper::fetch($article["link"]))) {
$xpath = new DOMXPath($doc);
$basenode = $xpath->query('(//img[@id="main-comic"])')->item(0);
$basenode = $xpath->query('//div[contains(@class, "MainComic__ComicImage")]//img')->item(0);
if ($basenode) {
$article["content"] = $doc->saveHTML($basenode);