mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 14:40:45 +00:00 
			
		
		
		
	[cnet] Correct JSON capturing
This commit is contained in:
		| @@ -33,7 +33,7 @@ class CNETIE(InfoExtractor): | ||||
|  | ||||
|         webpage = self._download_webpage(url, display_id) | ||||
|         data_json = self._html_search_regex( | ||||
|             r"<div class=\"cnetVideoPlayer\" data-cnet-video-options='([^']+)'", | ||||
|             r"<div class=\"cnetVideoPlayer\"\s+.*?data-cnet-video-options='([^']+)'", | ||||
|             webpage, 'data json') | ||||
|         data = json.loads(data_json) | ||||
|         vdata = data['video'] | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Philipp Hagemeister
					Philipp Hagemeister