diff options
Diffstat (limited to 'yt_dlp/extractor/mtv.py')
-rw-r--r-- | yt_dlp/extractor/mtv.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/yt_dlp/extractor/mtv.py b/yt_dlp/extractor/mtv.py index d161c33c1..10cd304eb 100644 --- a/yt_dlp/extractor/mtv.py +++ b/yt_dlp/extractor/mtv.py @@ -331,6 +331,7 @@ class MTVServicesInfoExtractor(InfoExtractor): class MTVServicesEmbeddedIE(MTVServicesInfoExtractor): IE_NAME = 'mtvservices:embedded' _VALID_URL = r'https?://media\.mtvnservices\.com/embed/(?P<mgid>.+?)(\?|/|$)' + _EMBED_REGEX = [r'<iframe[^>]+?src=(["\'])(?P<url>(?:https?:)?//media\.mtvnservices\.com/embed/.+?)\1'] _TEST = { # From http://www.thewrap.com/peter-dinklage-sums-up-game-of-thrones-in-45-seconds-video/ @@ -346,13 +347,6 @@ class MTVServicesEmbeddedIE(MTVServicesInfoExtractor): }, } - @staticmethod - def _extract_url(webpage): - mobj = re.search( - r'<iframe[^>]+?src=(["\'])(?P<url>(?:https?:)?//media\.mtvnservices\.com/embed/.+?)\1', webpage) - if mobj: - return mobj.group('url') - def _get_feed_url(self, uri, url=None): video_id = self._id_from_uri(uri) config = self._download_json( |