1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-07-25 19:01:18 +02:00

[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

View File

@@ -28,7 +28,7 @@ class GoComicsBridge extends BridgeAbstract {
$page = getSimpleHTMLDOM($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);
$item['id'] = $imagelink;