From a292cba256c1adca354d4ed59ef30a62aeb8606e Mon Sep 17 00:00:00 2001 From: Yen Chi Hsuan Date: Fri, 22 Apr 2016 00:05:48 +0800 Subject: [PATCH] [mgtv] Fix _VALID_URL and add localized name --- youtube_dl/extractor/mgtv.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/youtube_dl/extractor/mgtv.py b/youtube_dl/extractor/mgtv.py index 8f16a8f4c..a14d176a5 100644 --- a/youtube_dl/extractor/mgtv.py +++ b/youtube_dl/extractor/mgtv.py @@ -6,7 +6,8 @@ from ..utils import int_or_none class MGTVIE(InfoExtractor): - _VALID_URL = r'https?://www\.mgtv\.com/v/(?:[^/]+/)*(?P\d+).html' + _VALID_URL = r'https?://www\.mgtv\.com/v/(?:[^/]+/)*(?P\d+)\.html' + IE_DESC = '芒果TV' _TEST = { 'url': 'http://www.mgtv.com/v/1/290525/f/3116640.html', -- 2.39.5