From 7234d1d9c795bd43799de47952f65f72952e0564 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergey=20M=E2=80=A4?= Date: Fri, 18 Dec 2015 22:05:32 +0600 Subject: [PATCH] [brightcove:new] Add _extract_url --- youtube_dl/extractor/brightcove.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/youtube_dl/extractor/brightcove.py b/youtube_dl/extractor/brightcove.py index f5ebae1e68..66b8d2dff7 100644 --- a/youtube_dl/extractor/brightcove.py +++ b/youtube_dl/extractor/brightcove.py @@ -389,6 +389,11 @@ class BrightcoveNewIE(InfoExtractor): } }] + @staticmethod + def _extract_url(webpage): + urls = BrightcoveNewIE._extract_urls(webpage) + return urls[0] if urls else None + @staticmethod def _extract_urls(webpage): # Reference: