mirror of
				https://gitlab.com/ytdl-org/youtube-dl.git
				synced 2025-11-04 01:57:08 -05:00 
			
		
		
		
	[vlive] Prefer locale over language for subtitles id
This commit is contained in:
		@@ -116,7 +116,7 @@ class VLiveIE(InfoExtractor):
 | 
			
		||||
 | 
			
		||||
        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',
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user