mirror of
https://github.com/soimort/you-get.git
synced 2025-02-11 12:42:29 +03:00
Merge remote-tracking branch 'refs/remotes/soimort/develop' into develop
This commit is contained in:
commit
50e81b6b3e
@ -27,7 +27,10 @@ class MGTV(VideoExtractor):
|
||||
def get_vid_from_url(url):
|
||||
"""Extracts video ID from URL.
|
||||
"""
|
||||
return match1(url, 'http://www.mgtv.com/b/\d+/(\d+).html')
|
||||
vid = match1(url, 'http://www.mgtv.com/b/\d+/(\d+).html')
|
||||
if not vid:
|
||||
vid = match1(url, 'http://www.mgtv.com/hz/bdpz/\d+/(\d+).html')
|
||||
return vid
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
@staticmethod
|
||||
|
Loading…
Reference in New Issue
Block a user