mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-25 10:23:53 +00:00
[vlive] Prefer locale over language for subtitles id
This commit is contained in:
parent
6b4dfa2819
commit
49b69ad91c
1 changed files with 1 additions and 1 deletions
|
@ -116,7 +116,7 @@ def _replay(self, video_id, webpage, long_video_id, key):
|
|||
|
||||
subtitles = {}
|
||||
for caption in playinfo.get('captions', {}).get('list', []):
|
||||
lang = dict_get(caption, ('language', 'locale', 'country', 'label'))
|
||||
lang = dict_get(caption, ('locale', 'language', 'country', 'label'))
|
||||
if lang and caption.get('source'):
|
||||
subtitles[lang] = [{
|
||||
'ext': 'vtt',
|
||||
|
|
Loading…
Reference in a new issue