mirror of https://github.com/yt-dlp/yt-dlp.git
[extractor/generic] Use _extract_url for mtvservices
This commit is contained in:
parent
fe1d858e35
commit
46fde8a1a2
|
@ -50,6 +50,7 @@ from .dailymotion import DailymotionCloudIE
|
||||||
from .onionstudios import OnionStudiosIE
|
from .onionstudios import OnionStudiosIE
|
||||||
from .snagfilms import SnagFilmsEmbedIE
|
from .snagfilms import SnagFilmsEmbedIE
|
||||||
from .screenwavemedia import ScreenwaveMediaIE
|
from .screenwavemedia import ScreenwaveMediaIE
|
||||||
|
from .mtv import MTVServicesEmbeddedIE
|
||||||
|
|
||||||
|
|
||||||
class GenericIE(InfoExtractor):
|
class GenericIE(InfoExtractor):
|
||||||
|
@ -1611,12 +1612,9 @@ class GenericIE(InfoExtractor):
|
||||||
return self.url_result(url, ie='Vulture')
|
return self.url_result(url, ie='Vulture')
|
||||||
|
|
||||||
# Look for embedded mtvservices player
|
# Look for embedded mtvservices player
|
||||||
mobj = re.search(
|
mtvservices_url = MTVServicesEmbeddedIE._extract_url(webpage)
|
||||||
r'<iframe src="(?P<url>https?://media\.mtvnservices\.com/embed/[^"]+)"',
|
if mtvservices_url:
|
||||||
webpage)
|
return self.url_result(mtvservices_url, ie='MTVServicesEmbedded')
|
||||||
if mobj is not None:
|
|
||||||
url = unescapeHTML(mobj.group('url'))
|
|
||||||
return self.url_result(url, ie='MTVServicesEmbedded')
|
|
||||||
|
|
||||||
# Look for embedded yahoo player
|
# Look for embedded yahoo player
|
||||||
mobj = re.search(
|
mobj = re.search(
|
||||||
|
|
Loading…
Reference in New Issue