1
0
Fork 0
forked from blallo/rss-bridge

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

GoComics changed comic page structure, so this patch fixes it

Closes #565
This commit is contained in:
mcbyte-it 2017-08-17 19:35:41 +03:00 committed by LogMANOriginal
parent f91309c7e4
commit 0284e9d488

View file

@ -18,10 +18,10 @@ class GoComicsBridge extends BridgeAbstract {
$html = getSimpleHTMLDOM($this->getURI()) $html = getSimpleHTMLDOM($this->getURI())
or returnServerError('Could not request GoComics: ' . $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); $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; $comic = $img->src;
$title = $link->title; $title = $link->title;
$url = $html->find('input.js-copy-link', 0)->value; $url = $html->find('input.js-copy-link', 0)->value;