mirror of
				https://github.com/ytdl-org/youtube-dl
				synced 2025-11-04 03:33:46 +00:00 
			
		
		
		
	[YouTube] Endure subtitle URLs are complete
* WEB URLs are, MWEB not * resolves #33017
This commit is contained in:
		
							parent
							
								
									00ad2b8ca1
								
							
						
					
					
						commit
						1036478d13
					
				@ -2435,6 +2435,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
 | 
			
		||||
                subtitles = {}
 | 
			
		||||
                for caption_track in traverse_obj(pctr, (
 | 
			
		||||
                        'captionTracks', lambda _, v: v.get('baseUrl'))):
 | 
			
		||||
                    base_url = self._yt_urljoin(caption_track['baseUrl'])
 | 
			
		||||
                    if not base_url:
 | 
			
		||||
                        continue
 | 
			
		||||
                    if caption_track.get('kind') != 'asr':
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user