mirror of
				https://gitlab.com/ytdl-org/youtube-dl.git
				synced 2025-11-03 22:27:08 -05:00 
			
		
		
		
	[ted] Fix type_watch links extraction
This commit is contained in:
		@@ -199,8 +199,9 @@ class TEDIE(SubtitlesInfoExtractor):
 | 
			
		||||
        webpage = self._download_webpage(url, name)
 | 
			
		||||
 | 
			
		||||
        config_json = self._html_search_regex(
 | 
			
		||||
            r"data-config='([^']+)", webpage, 'config')
 | 
			
		||||
        config = json.loads(config_json)
 | 
			
		||||
            r'"pages\.jwplayer"\s*,\s*({.+?})\s*\)\s*</script>',
 | 
			
		||||
            webpage, 'config')
 | 
			
		||||
        config = json.loads(config_json)['config']
 | 
			
		||||
        video_url = config['video']['url']
 | 
			
		||||
        thumbnail = config.get('image', {}).get('url')
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user