[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:
St. John Johnson 2020-02-26 12:56:52 -08:00 committed by GitHub
parent a54eb88ee1
commit e102353ab8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;