[GoComics] Update to new website structure (#1464)
GoComics.com has updated their website. The image location is now a data attribute in a div.
This commit is contained in:
parent
a54eb88ee1
commit
e102353ab8
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ class GoComicsBridge extends BridgeAbstract {
|
||||||
|
|
||||||
$page = getSimpleHTMLDOM($link)
|
$page = getSimpleHTMLDOM($link)
|
||||||
or returnServerError('Could not request GoComics: ' . $link);
|
or returnServerError('Could not request GoComics: ' . $link);
|
||||||
$imagelink = $page->find('.img-fluid', 1)->src;
|
$imagelink = $page->find('.comic.container', 0)->getAttribute('data-image');
|
||||||
$date = explode('/', $link);
|
$date = explode('/', $link);
|
||||||
|
|
||||||
$item['id'] = $imagelink;
|
$item['id'] = $imagelink;
|
||||||
|
|
Loading…
Reference in a new issue