mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-21 20:46:36 -05:00
[mtv] proposed fix
This commit is contained in:
parent
079a941282
commit
6c6ee4905f
1 changed files with 4 additions and 4 deletions
|
@ -289,7 +289,7 @@ def _extract_new_triforce_mgid(self, webpage, url='', video_id=None):
|
|||
|
||||
return mgid
|
||||
|
||||
def _extract_mgid(self, webpage, url, data_zone=None):
|
||||
def _extract_mgid(self, webpage, url, title=None, data_zone=None):
|
||||
try:
|
||||
# the url can be http://media.mtvnservices.com/fb/{mgid}.swf
|
||||
# or http://media.mtvnservices.com/{mgid}
|
||||
|
@ -300,7 +300,7 @@ def _extract_mgid(self, webpage, url, data_zone=None):
|
|||
except RegexNotFoundError:
|
||||
mgid = None
|
||||
|
||||
# TODO: ideally use self._match_id(url)
|
||||
if not title:
|
||||
title = url_basename(url)
|
||||
|
||||
try:
|
||||
|
@ -337,7 +337,7 @@ def _extract_mgid(self, webpage, url, data_zone=None):
|
|||
def _real_extract(self, url):
|
||||
title = url_basename(url)
|
||||
webpage = self._download_webpage(url, title)
|
||||
mgid = self._extract_mgid(webpage, url)
|
||||
mgid = self._extract_mgid(webpage, url, title=title)
|
||||
videos_info = self._get_videos_info(mgid, url=url)
|
||||
return videos_info
|
||||
|
||||
|
|
Loading…
Reference in a new issue