From a8edca98f53a9cbc1dc0352cf1d464eb8fbabcbe Mon Sep 17 00:00:00 2001 From: lonm Date: Thu, 16 May 2024 10:59:56 +0100 Subject: [PATCH] [RadioFrance] Fix live substations --- yt_dlp/extractor/radiofrance.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/yt_dlp/extractor/radiofrance.py b/yt_dlp/extractor/radiofrance.py index b9e01c789..e1c6fc511 100644 --- a/yt_dlp/extractor/radiofrance.py +++ b/yt_dlp/extractor/radiofrance.py @@ -237,7 +237,8 @@ class RadioFranceLiveIE(RadioFranceBaseIE): if substation_id: webpage = self._download_webpage(url, station_id) - api_response = self._extract_data_from_webpage(webpage, station_id, 'webRadioData') + api_response = self._search_json(r'webradioLive:\s*', webpage, station_id, substation_id, + transform_source=js_to_json) else: api_response = self._download_json( f'https://www.radiofrance.fr/{station_id}/api/live', station_id)