From 3e9004cd8aed6aa49bb6b41e50b8368c9ad86155 Mon Sep 17 00:00:00 2001 From: Dante Date: Wed, 8 Apr 2020 16:33:29 -0700 Subject: [PATCH] Formatting the code --- youtube_dl/extractor/metrotvnews.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/youtube_dl/extractor/metrotvnews.py b/youtube_dl/extractor/metrotvnews.py index 1899e425c..2a7890225 100644 --- a/youtube_dl/extractor/metrotvnews.py +++ b/youtube_dl/extractor/metrotvnews.py @@ -6,10 +6,12 @@ from .common import InfoExtractor class MetrotvnewsIE(InfoExtractor): + _VALID_URL = r'https:\/\/www.metrotvnews\.com\/play\/(?P\S+)-\S+' def _real_extract(self, url): + video_id = self._match_id(url) webpage = self._download_webpage( @@ -22,6 +24,7 @@ class MetrotvnewsIE(InfoExtractor): r'(https:\/\/cdn01\.metrotvnews\.com\/videos\/\d+\/\d+\/\d+\/\S+.mp4)', webpage, "download_url" ) + return { 'id': video_id, 'url': download_url,