From 80f9871c9e3dced0ce610f540218baec8f427ef7 Mon Sep 17 00:00:00 2001 From: Paroleen <48787191+Paroleen@users.noreply.github.com> Date: Fri, 11 Nov 2022 17:33:28 +0000 Subject: [PATCH] [AwwwardsBridge] Fix sites parsing (#3141) * [AwwwardsBridge] Fix sites parsing * [AwwwardsBridge] Fix phpcs issue --- bridges/AwwwardsBridge.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/bridges/AwwwardsBridge.php b/bridges/AwwwardsBridge.php index 1596bec6..a1adfede 100644 --- a/bridges/AwwwardsBridge.php +++ b/bridges/AwwwardsBridge.php @@ -25,12 +25,8 @@ class AwwwardsBridge extends BridgeAbstract $sites = getSimpleHTMLDOM(self::SITESURI); Debug::log('Parsing all JSON data'); - foreach ($sites->find('li[data-model]') as $site) { - $decode = html_entity_decode( - $site->attr['data-model'], - ENT_QUOTES, - 'utf-8' - ); + foreach ($sites->find('.grid-sites li') as $site) { + $decode = html_entity_decode($site->attr['data-collectable-model-value'], ENT_QUOTES, 'utf-8'); $decode = json_decode($decode, true); $this->sites[] = $decode; }