Fix af_comics for explosm after site changes
This commit is contained in:
parent
385da287d8
commit
fdd1831c5d
|
@ -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