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:
parent
c1294dc901
commit
93678422ef
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user