From 9cd8e93bb90f8dfa4185bd7443ac1577e8a17ca9 Mon Sep 17 00:00:00 2001 From: Florent Machen Date: Fri, 25 Mar 2022 00:26:38 +0100 Subject: [PATCH] [GQMagazineBridge] fix retrieve the content of an article at a given url (#2305) --- bridges/GQMagazineBridge.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bridges/GQMagazineBridge.php b/bridges/GQMagazineBridge.php index 368cd7e1..8fb71dd7 100644 --- a/bridges/GQMagazineBridge.php +++ b/bridges/GQMagazineBridge.php @@ -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); } /**