Fix seaons without episodes

This commit is contained in:
Michaël Arnauts 2020-04-13 10:32:04 +02:00
parent 2df7282d7e
commit 74769ffc47

View File

@ -298,7 +298,7 @@ class ContentApi:
description=playlist['pageInfo']['description'],
number=playlist['episodes'][0]['seasonNumber'], # You did not see this
)
for key, playlist in enumerate(data['playlists'])
for key, playlist in enumerate(data['playlists']) if playlist['episodes']
}
# Create Episodes info