mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-09 16:38:50 +00:00
[AwwwardsBridge] Fix sites parsing (#3141)
* [AwwwardsBridge] Fix sites parsing * [AwwwardsBridge] Fix phpcs issue
This commit is contained in:
parent
b64f8f2a09
commit
80f9871c9e
@ -25,12 +25,8 @@ class AwwwardsBridge extends BridgeAbstract
|
|||||||
$sites = getSimpleHTMLDOM(self::SITESURI);
|
$sites = getSimpleHTMLDOM(self::SITESURI);
|
||||||
|
|
||||||
Debug::log('Parsing all JSON data');
|
Debug::log('Parsing all JSON data');
|
||||||
foreach ($sites->find('li[data-model]') as $site) {
|
foreach ($sites->find('.grid-sites li') as $site) {
|
||||||
$decode = html_entity_decode(
|
$decode = html_entity_decode($site->attr['data-collectable-model-value'], ENT_QUOTES, 'utf-8');
|
||||||
$site->attr['data-model'],
|
|
||||||
ENT_QUOTES,
|
|
||||||
'utf-8'
|
|
||||||
);
|
|
||||||
$decode = json_decode($decode, true);
|
$decode = json_decode($decode, true);
|
||||||
$this->sites[] = $decode;
|
$this->sites[] = $decode;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user