From: Remita Amine Date: Sat, 18 Feb 2017 20:07:09 +0000 (+0100) Subject: [brightcove:legacy] restrict videoPlayer value(closes #12040) X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=049a0f4d6da55f4062658da7593363147c92f4a8;p=youtube-dl [brightcove:legacy] restrict videoPlayer value(closes #12040) --- diff --git a/youtube_dl/extractor/brightcove.py b/youtube_dl/extractor/brightcove.py index 5c6e99da1..27685eed0 100644 --- a/youtube_dl/extractor/brightcove.py +++ b/youtube_dl/extractor/brightcove.py @@ -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: