[mgtv]new pattern; fix #2232

This commit is contained in:
MaxwellGoblin 2017-08-06 02:39:53 +08:00
parent 6d60805079
commit 2344e7eaf4

View File

@ -27,7 +27,7 @@ class MGTV(VideoExtractor):
def get_vid_from_url(url): def get_vid_from_url(url):
"""Extracts video ID from URL. """Extracts video ID from URL.
""" """
vid = match1(url, 'http://www.mgtv.com/b/\d+/(\d+).html') vid = match1(url, 'http://www.mgtv.com/(?:b|l)/\d+/(\d+).html')
if not vid: if not vid:
vid = match1(url, 'http://www.mgtv.com/hz/bdpz/\d+/(\d+).html') vid = match1(url, 'http://www.mgtv.com/hz/bdpz/\d+/(\d+).html')
return vid return vid