mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-30 22:25:19 +00:00 
			
		
		
		
	[brightcove:legacy] restrict videoPlayer value(closes #12040)
This commit is contained in:
		| @@ -191,6 +191,10 @@ class BrightcoveLegacyIE(InfoExtractor): | ||||
|         # These fields hold the id of the video | ||||
|         videoPlayer = find_param('@videoPlayer') or find_param('videoId') or find_param('videoID') or find_param('@videoList') | ||||
|         if videoPlayer is not None: | ||||
|             if isinstance(videoPlayer, list): | ||||
|                 videoPlayer = videoPlayer[0] | ||||
|             if not (videoPlayer.isdigit() or videoPlayer.startswith('ref:')): | ||||
|                 return None | ||||
|             params['@videoPlayer'] = videoPlayer | ||||
|         linkBase = find_param('linkBaseURL') | ||||
|         if linkBase is not None: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Remita Amine
					Remita Amine