From 0284e9d488ddcacf601e360782142f157b7bfbc9 Mon Sep 17 00:00:00 2001 From: mcbyte-it Date: Thu, 17 Aug 2017 19:35:41 +0300 Subject: [PATCH] [GoComicsBridge] Fix for page structure changes (#568) GoComics changed comic page structure, so this patch fixes it Closes #565 --- bridges/GoComicsBridge.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bridges/GoComicsBridge.php b/bridges/GoComicsBridge.php index 27621d8..b249ccb 100644 --- a/bridges/GoComicsBridge.php +++ b/bridges/GoComicsBridge.php @@ -18,10 +18,10 @@ class GoComicsBridge extends BridgeAbstract { $html = getSimpleHTMLDOM($this->getURI()) or returnServerError('Could not request GoComics: ' . $this->getURI()); - foreach($html->find('div.item-comic-container') as $element) { + foreach($html->find('div.comic__container') as $element) { $img = $element->find('img', 0); - $link = $element->find('a.item-comic-link', 0); + $link = $element->find('a.js-item-comic-link', 0); $comic = $img->src; $title = $link->title; $url = $html->find('input.js-copy-link', 0)->value;