youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit 049a0f4d6da55f4062658da7593363147c92f4a8
parent ac33accd96279ee541952aaa4f0bb72b4f76b9ae
Author: Remita Amine <remitamine@gmail.com>
Date:   Sat, 18 Feb 2017 21:07:09 +0100

[brightcove:legacy] restrict videoPlayer value(closes #12040)

Diffstat:
Myoutube_dl/extractor/brightcove.py | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git 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: