1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-11-26 02:14:32 +01:00

Fix crash when downloading iPlayer playlists that are not divided into seasons.

This commit is contained in:
Daniel Cassidy 2019-12-17 07:44:00 +00:00
parent c1294dc901
commit 93678422ef

View File

@ -1291,7 +1291,10 @@ class BBCCoUkIPlayerPlaylistIE(BBCCoUkPlaylistBaseIE):
redux_state = self._redux_state(webpage, playlist_id) redux_state = self._redux_state(webpage, playlist_id)
slices = redux_state.get('header', {}).get('availableSlices', []) slices = redux_state.get('header', {}).get('availableSlices', [])
season_ids = list(map(lambda s: s.get('id'), slices)) if slices:
season_ids = list(map(lambda s: s.get('id'), slices))
else:
season_ids = []
for season in itertools.count(1): for season in itertools.count(1):
while True: while True: