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:
commit
ea4bbd7a46
|
@ -13,7 +13,7 @@ class Af_Comics_Explosm extends Af_ComicFilter {
|
||||||
|
|
||||||
if (@$doc->loadHTML(UrlHelper::fetch($article["link"]))) {
|
if (@$doc->loadHTML(UrlHelper::fetch($article["link"]))) {
|
||||||
$xpath = new DOMXPath($doc);
|
$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) {
|
if ($basenode) {
|
||||||
$article["content"] = $doc->saveHTML($basenode);
|
$article["content"] = $doc->saveHTML($basenode);
|
||||||
|
|
Loading…
Reference in New Issue