mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-02 09:04:44 +02:00
[AwwwardsBridge] Fix sites parsing (#3141)
* [AwwwardsBridge] Fix sites parsing * [AwwwardsBridge] Fix phpcs issue
This commit is contained in:
parent
b64f8f2a09
commit
80f9871c9e
1 changed files with 2 additions and 6 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue