From 0311562081cf9ba8abc8232722be98914cb90cb6 Mon Sep 17 00:00:00 2001 From: midas02 Date: Mon, 1 May 2017 20:32:47 +0200 Subject: [PATCH] No need for a html_search - fixed typo in the test --- youtube_dl/extractor/rmcdecouverte.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/youtube_dl/extractor/rmcdecouverte.py b/youtube_dl/extractor/rmcdecouverte.py index 1d3296970..f6ef6d747 100644 --- a/youtube_dl/extractor/rmcdecouverte.py +++ b/youtube_dl/extractor/rmcdecouverte.py @@ -13,7 +13,7 @@ class RMCDecouverteIE(InfoExtractor): _VALID_URL = r'https?://rmcdecouverte\.bfmtv\.com/mediaplayer-replay.*?\bid=(?P\d+)' _TEST = { - 'url': 'http://rmcdecouverte.bfmtv.com/mediaplayer-replay/?id=116548', + 'url': 'http://rmcdecouverte.bfmtv.com/mediaplayer-replay/?id=16548', 'info_dict': { 'id': '5411254766001', 'ext': 'mp4', @@ -38,5 +38,5 @@ class RMCDecouverteIE(InfoExtractor): if brightcove_legacy_url: brightcove_id = compat_parse_qs(compat_urlparse.urlparse(brightcove_legacy_url).query)['@videoPlayer'][0] else: - brightcove_id = self._html_search_regex(r'data-video-id="(.*?)"', webpage, 'brightcove_id') + brightcove_id = self._search_regex(r'data-video-id="(.*?)"', webpage, 'brightcove_id') return self.url_result(self.BRIGHTCOVE_URL_TEMPLATE % brightcove_id, 'BrightcoveNew', brightcove_id)