Browse Source

[GoComicsBridge] Fix for page structure changes (#568)

GoComics changed comic page structure, so this patch fixes it

Closes #565
mcbyte-it 6 years ago
parent
commit
0284e9d488
1 changed files with 2 additions and 2 deletions
  1. 2 2
      bridges/GoComicsBridge.php

+ 2 - 2
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;