mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2024-11-17 14:54:31 +01:00
parent
fe6ad195ae
commit
fc42bc6ec9
@ -200,7 +200,13 @@ class MTVServicesInfoExtractor(InfoExtractor):
|
|||||||
if mgid is None or ':' not in mgid:
|
if mgid is None or ':' not in mgid:
|
||||||
mgid = self._search_regex(
|
mgid = self._search_regex(
|
||||||
[r'data-mgid="(.*?)"', r'swfobject.embedSWF\(".*?(mgid:.*?)"'],
|
[r'data-mgid="(.*?)"', r'swfobject.embedSWF\(".*?(mgid:.*?)"'],
|
||||||
webpage, 'mgid')
|
webpage, 'mgid', default=None)
|
||||||
|
|
||||||
|
if not mgid:
|
||||||
|
sm4_embed = self._html_search_meta(
|
||||||
|
'sm4:video:embed', webpage, 'sm4 embed', default='')
|
||||||
|
mgid = self._search_regex(
|
||||||
|
r'embed/(mgid:.+?)["\'&?/]', sm4_embed, 'mgid')
|
||||||
|
|
||||||
videos_info = self._get_videos_info(mgid)
|
videos_info = self._get_videos_info(mgid)
|
||||||
return videos_info
|
return videos_info
|
||||||
|
Loading…
Reference in New Issue
Block a user