mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-05 16:17:28 +02:00
[DailymotionBridge] Fetch playlist title from API (#4649)
This commit is contained in:
@@ -129,8 +129,9 @@ class DailymotionBridge extends BridgeAbstract
|
||||
|
||||
private function getPlaylistTitle($id)
|
||||
{
|
||||
$html = getSimpleHTMLDOM(self::URI . 'playlist/' . $id);
|
||||
return $html->find('meta[property=og:title]', 0)->getAttribute('content');
|
||||
$apiJson = getContents($this->apiUrl . '/playlist/' . $this->getInput('p'));
|
||||
$apiData = json_decode($apiJson, true);
|
||||
return $apiData['name'];
|
||||
}
|
||||
|
||||
private function getApiUrl()
|
||||
|
Reference in New Issue
Block a user