Explorar o código

[mgtv] Fix _VALID_URL and add localized name

Yen Chi Hsuan %!s(int64=9) %!d(string=hai) anos
pai
achega
a292cba256
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      youtube_dl/extractor/mgtv.py

+ 2 - 1
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<id>\d+).html'
+    _VALID_URL = r'https?://www\.mgtv\.com/v/(?:[^/]+/)*(?P<id>\d+)\.html'
+    IE_DESC = '芒果TV'
 
     _TEST = {
         'url': 'http://www.mgtv.com/v/1/290525/f/3116640.html',