mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-02-16 15:19:55 +03: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);
|
||||
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue