Fix seaons without episodes
This commit is contained in:
parent
2df7282d7e
commit
74769ffc47
@ -298,7 +298,7 @@ class ContentApi:
|
|||||||
description=playlist['pageInfo']['description'],
|
description=playlist['pageInfo']['description'],
|
||||||
number=playlist['episodes'][0]['seasonNumber'], # You did not see this
|
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
|
# Create Episodes info
|
||||||
|
Loading…
Reference in New Issue
Block a user