projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Improve some _VALID_URLs
[youtube-dl]
/
youtube_dl
/
extractor
/
mgtv.py
diff --git
a/youtube_dl/extractor/mgtv.py
b/youtube_dl/extractor/mgtv.py
index 27bdff8b25cb63e628981ad3a8dbcc7f76db7653..e0bb5d208856a121f40f533fcacf3b7bd98d13ea 100644
(file)
--- a/
youtube_dl/extractor/mgtv.py
+++ b/
youtube_dl/extractor/mgtv.py
@@
-6,7
+6,7
@@
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'
_TESTS = [{