mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-30 22:25:19 +00:00 
			
		
		
		
	[youtube] Fix subtitle names for age-gated videos
Related: https://github.com/iv-org/invidious/pull/2205#issuecomment-868680486
This commit is contained in:
		| @@ -2307,7 +2307,9 @@ class YoutubeIE(YoutubeBaseInfoExtractor): | ||||
|                         continue | ||||
|                     process_language( | ||||
|                         automatic_captions, base_url, translation_language_code, | ||||
|                         try_get(translation_language, lambda x: x['languageName']['simpleText']), | ||||
|                         try_get(translation_language, ( | ||||
|                             lambda x: x['languageName']['simpleText'], | ||||
|                             lambda x: x['languageName']['runs'][0]['text'])), | ||||
|                         {'tlang': translation_language_code}) | ||||
|                 info['automatic_captions'] = automatic_captions | ||||
|         info['subtitles'] = subtitles | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 pukkandan
					pukkandan