[nrk] Change initial chapters variable from None to empty list

This commit is contained in:
MrDemocracy 2024-06-15 03:03:54 +02:00 committed by GitHub
parent b5a111eeb8
commit 6d7eb0e827
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -221,7 +221,7 @@ def _real_extract(self, url):
'url': sub_url, 'url': sub_url,
}) })
chapters = None chapters = []
if data.get('skipDialogInfo'): if data.get('skipDialogInfo'):
chapters = [item for item in [{ chapters = [item for item in [{
'start_time': float_or_none(traverse_obj(data, ('skipDialogInfo', 'startIntroInSeconds'))), 'start_time': float_or_none(traverse_obj(data, ('skipDialogInfo', 'startIntroInSeconds'))),