mirror of
https://github.com/yt-dlp/yt-dlp
synced 2025-02-09 08:46:36 +01:00
[RadioFrance] Fix live substations
This commit is contained in:
parent
827560f2b9
commit
a8edca98f5
1 changed files with 2 additions and 1 deletions
|
@ -237,7 +237,8 @@ class RadioFranceLiveIE(RadioFranceBaseIE):
|
||||||
|
|
||||||
if substation_id:
|
if substation_id:
|
||||||
webpage = self._download_webpage(url, station_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:
|
else:
|
||||||
api_response = self._download_json(
|
api_response = self._download_json(
|
||||||
f'https://www.radiofrance.fr/{station_id}/api/live', station_id)
|
f'https://www.radiofrance.fr/{station_id}/api/live', station_id)
|
||||||
|
|
Loading…
Add table
Reference in a new issue