mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-12 20:23:11 +00:00
[RadioFrance] Ep selection is already handled, don't add it here
This commit is contained in:
parent
5db908bebf
commit
827560f2b9
@ -292,19 +292,10 @@ class RadioFrancePlaylistBaseIE(RadioFranceBaseIE):
|
||||
# profile page playlists are not attached to a station currently
|
||||
station = self._match_valid_url(url).group('station') if isinstance(self, RadioFrancePodcastIE) else None
|
||||
|
||||
# Check if user started request from a page other than 1
|
||||
startpage = 1
|
||||
parsedurl = urllib.parse.urlparse(url)
|
||||
if parsedurl.query:
|
||||
startpagequery = urllib.parse.parse_qs(parsedurl.query)
|
||||
if 'p' in startpagequery:
|
||||
startpage = int(startpagequery['p'][0])
|
||||
|
||||
# Get data for the first page, and the uuid for the playlist
|
||||
metadata = self._call_api(station, playlist_id, startpage)
|
||||
metadata = self._call_api(station, playlist_id, 1)
|
||||
uuid = traverse_obj(metadata, ('metadata', 'id'))
|
||||
|
||||
# This method should return the final playlist metadata which yt-dlp can then use to download everything
|
||||
return self.playlist_result(
|
||||
self._generate_playlist_entries(station, playlist_id, metadata),
|
||||
uuid,
|
||||
@ -408,7 +399,7 @@ class RadioFranceProfileIE(RadioFrancePlaylistBaseIE):
|
||||
'title': 'Thomas Pesquet',
|
||||
'description': 'Astronaute à l\'agence spatiale européenne',
|
||||
},
|
||||
'playlist_mincount': 158,
|
||||
'playlist_mincount': 212,
|
||||
}, {
|
||||
'url': 'https://www.radiofrance.fr/personnes/eugenie-bastie',
|
||||
'info_dict': {
|
||||
|
Loading…
Reference in New Issue
Block a user