mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-10-27 13:30:28 +01:00
Update AppleMusicBridge html parsing
switch from getSimpleHTMLDOM() to getContents() to handle certain characters like '<' that break otherwise valid artist feeds.
This commit is contained in:
@@ -66,7 +66,7 @@ class AppleMusicBridge extends BridgeAbstract
|
|||||||
}
|
}
|
||||||
|
|
||||||
$url = 'https://itunes.apple.com/lookup?id=' . $this->getInput('artist') . '&entity=album&limit=' . $limit . '&sort=recent';
|
$url = 'https://itunes.apple.com/lookup?id=' . $this->getInput('artist') . '&entity=album&limit=' . $limit . '&sort=recent';
|
||||||
$html = getSimpleHTMLDOM($url);
|
$html = getContents($url);
|
||||||
$json = json_decode($html);
|
$json = json_decode($html);
|
||||||
$result = $json->results;
|
$result = $json->results;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user