mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-01 14:20:16 +02:00
[GQMagazineBridge] fix retrieve the content of an article at a given url (#2305)
This commit is contained in:
@@ -77,8 +77,6 @@ class GQMagazineBridge extends BridgeAbstract
|
||||
// Since GQ don't want simple class scrapping, let's do it the hard way and ... discover content !
|
||||
$main = $html->find('main', 0);
|
||||
foreach ($main->find('a') as $link) {
|
||||
if(strpos($link, $this->getInput('page')))
|
||||
continue;
|
||||
$uri = $link->href;
|
||||
$date = $link->parent()->find('time', 0);
|
||||
|
||||
@@ -117,7 +115,7 @@ class GQMagazineBridge extends BridgeAbstract
|
||||
*/
|
||||
private function loadFullArticle($uri){
|
||||
$html = getSimpleHTMLDOMCached($uri);
|
||||
return $html->find('section[data-test-id=MainContentWrapper]', 0);
|
||||
return $html->find('article', 0);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user