mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-21 20:46:36 -05:00
parent
a13e684813
commit
61e9d9268c
1 changed files with 1 additions and 1 deletions
|
@ -775,7 +775,7 @@ def add(meta_list, info_list=None):
|
|||
stream_idx = 0
|
||||
for fmt in info.get('requested_formats') or []:
|
||||
stream_count = 2 if 'none' not in (fmt.get('vcodec'), fmt.get('acodec')) else 1
|
||||
lang = ISO639Utils.short2long(fmt['language']) or fmt.get('language')
|
||||
lang = ISO639Utils.short2long(fmt.get('language') or '') or fmt.get('language')
|
||||
for i in range(stream_idx, stream_idx + stream_count):
|
||||
if lang:
|
||||
metadata[str(i)].setdefault('language', lang)
|
||||
|
|
Loading…
Reference in a new issue