mirror of
https://github.com/soimort/you-get.git
synced 2025-02-03 00:33:58 +03:00
[mgtv]new pattern; fix #2232
This commit is contained in:
parent
6d60805079
commit
2344e7eaf4
@ -27,7 +27,7 @@ class MGTV(VideoExtractor):
|
||||
def get_vid_from_url(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:
|
||||
vid = match1(url, 'http://www.mgtv.com/hz/bdpz/\d+/(\d+).html')
|
||||
return vid
|
||||
|
Loading…
Reference in New Issue
Block a user