From 0254f93b08ef5f8af8ea0f1b9f7558892626900b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sergey=20M=E2=80=A4?= Date: Sat, 15 Apr 2017 20:30:51 +0700 Subject: [PATCH] [brightcove] Validate ambiguous embeds' URLs (closes #9163, closes #12005, closes #12178, closes #12480) --- youtube_dl/extractor/brightcove.py | 57 +++++++++++++++++------------- youtube_dl/extractor/generic.py | 2 +- 2 files changed, 34 insertions(+), 25 deletions(-) diff --git a/youtube_dl/extractor/brightcove.py b/youtube_dl/extractor/brightcove.py index c7059a12a..124497e95 100644 --- a/youtube_dl/extractor/brightcove.py +++ b/youtube_dl/extractor/brightcove.py @@ -489,7 +489,7 @@ class BrightcoveNewIE(InfoExtractor): return urls[0] if urls else None @staticmethod - def _extract_urls(webpage): + def _extract_urls(ie, webpage): # Reference: # 1. http://docs.brightcove.com/en/video-cloud/brightcove-player/guides/publish-video.html#setvideoiniframe # 2. http://docs.brightcove.com/en/video-cloud/brightcove-player/guides/publish-video.html#tag @@ -506,37 +506,46 @@ class BrightcoveNewIE(InfoExtractor): # Look for