]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[mtv] add common IE_NAME prefix for MTVIE and MTVVideoIE
authorRemita Amine <remitamine@gmail.com>
Sat, 24 Sep 2016 09:50:14 +0000 (10:50 +0100)
committerRemita Amine <remitamine@gmail.com>
Sat, 24 Sep 2016 09:50:14 +0000 (10:50 +0100)
youtube_dl/extractor/mtv.py

index 84a2dcb6221358c33e2966ad8abe2605048dcb78..2e9580b103430dedd718134159fddbecd4a12ad3 100644 (file)
@@ -270,7 +270,8 @@ class MTVServicesEmbeddedIE(MTVServicesInfoExtractor):
 
 
 class MTVIE(MTVServicesInfoExtractor):
-    _VALID_URL = r'(?x)https?://(?:www\.)?mtv\.com/(video-clips|full-episodes)/(?P<id>[^/?#.]+)'
+    IE_NAME = 'mtv'
+    _VALID_URL = r'https?://(?:www\.)?mtv\.com/(video-clips|full-episodes)/(?P<id>[^/?#.]+)'
     _FEED_URL = 'http://www.mtv.com/feeds/mrss/'
 
     _TESTS = [{
@@ -291,6 +292,7 @@ class MTVIE(MTVServicesInfoExtractor):
 
 
 class MTVVideoIE(MTVServicesInfoExtractor):
+    IE_NAME = 'mtv:video'
     _VALID_URL = r'''(?x)^https?://
         (?:(?:www\.)?mtv\.com/videos/.+?/(?P<videoid>[0-9]+)/[^/]+$|
            m\.mtv\.com/videos/video\.rbml\?.*?id=(?P<mgid>[^&]+))'''