mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-30 22:25:19 +00:00 
			
		
		
		
	[brightcove] Improve the 'experienceJSON' regex (#3081)
One of the strings may contain ';', we would get an invalid json string.
This commit is contained in:
		| @@ -187,7 +187,7 @@ class BrightcoveIE(InfoExtractor): | ||||
|         webpage = self._download_webpage(req, video_id) | ||||
|  | ||||
|         self.report_extraction(video_id) | ||||
|         info = self._search_regex(r'var experienceJSON = ({.*?});', webpage, 'json') | ||||
|         info = self._search_regex(r'var experienceJSON = ({.*});', webpage, 'json') | ||||
|         info = json.loads(info)['data'] | ||||
|         video_info = info['programmedContent']['videoPlayer']['mediaDTO'] | ||||
|         video_info['_youtubedl_adServerURL'] = info.get('adServerURL') | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Jaime Marquínez Ferrándiz
					Jaime Marquínez Ferrándiz