mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-06 16:46:30 +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)
|
private function getPlaylistTitle($id)
|
||||||
{
|
{
|
||||||
$html = getSimpleHTMLDOM(self::URI . 'playlist/' . $id);
|
$apiJson = getContents($this->apiUrl . '/playlist/' . $this->getInput('p'));
|
||||||
return $html->find('meta[property=og:title]', 0)->getAttribute('content');
|
$apiData = json_decode($apiJson, true);
|
||||||
|
return $apiData['name'];
|
||||||
}
|
}
|
||||||
|
|
||||||
private function getApiUrl()
|
private function getApiUrl()
|
||||||
|
Reference in New Issue
Block a user