0
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-08-22 11:28:36 +00:00

[DailymotionBridge] Fetch playlist title from API (#4649)

This commit is contained in:
Joseph 2025-08-04 14:41:04 +01:00 committed by GitHub
parent b5f90f8d47
commit 20fec74c63
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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()