From 145c1e426517afc0c4ed1500bbf6b3d6b3dab87e Mon Sep 17 00:00:00 2001 From: "St. John Johnson" Date: Fri, 21 Feb 2020 22:22:57 -0800 Subject: [PATCH] [GoComics] Update to new website structure GoComics.com has updated their website. The image location is now a data attribute in a div. --- bridges/GoComicsBridge.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bridges/GoComicsBridge.php b/bridges/GoComicsBridge.php index 3223d19a76c..7512d84ac41 100644 --- a/bridges/GoComicsBridge.php +++ b/bridges/GoComicsBridge.php @@ -28,7 +28,7 @@ public function collectData(){ $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;