1
0
Fork 0

[cleanup] Misc (#11554)

Closes #6884
Authored by: bashonly, Grub4K, seproDev

Co-authored-by: Simon Sawicki <contact@grub4k.xyz>
Co-authored-by: sepro <sepro@sepr0.com>
This commit is contained in:
bashonly 2024-11-17 23:25:05 +00:00 committed by GitHub
commit da252d9d32
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 24 additions and 14 deletions

View file

@ -3767,7 +3767,7 @@ class InfoExtractor:
""" Merge subtitle dictionaries, language by language. """
if target is None:
target = {}
for d in dicts:
for d in filter(None, dicts):
for lang, subs in d.items():
target[lang] = cls._merge_subtitle_items(target.get(lang, []), subs)
return target