mirror of
https://github.com/blackjack4494/yt-dlc.git
synced 2024-12-22 07:43:08 +00:00
[mtv] add common IE_NAME prefix for MTVIE and MTVVideoIE
This commit is contained in:
parent
8add4bfecb
commit
a54ffb8aa7
1 changed files with 3 additions and 1 deletions
|
@ -270,7 +270,8 @@ class MTVServicesEmbeddedIE(MTVServicesInfoExtractor):
|
||||||
|
|
||||||
|
|
||||||
class MTVIE(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/'
|
_FEED_URL = 'http://www.mtv.com/feeds/mrss/'
|
||||||
|
|
||||||
_TESTS = [{
|
_TESTS = [{
|
||||||
|
@ -291,6 +292,7 @@ class MTVIE(MTVServicesInfoExtractor):
|
||||||
|
|
||||||
|
|
||||||
class MTVVideoIE(MTVServicesInfoExtractor):
|
class MTVVideoIE(MTVServicesInfoExtractor):
|
||||||
|
IE_NAME = 'mtv:video'
|
||||||
_VALID_URL = r'''(?x)^https?://
|
_VALID_URL = r'''(?x)^https?://
|
||||||
(?:(?:www\.)?mtv\.com/videos/.+?/(?P<videoid>[0-9]+)/[^/]+$|
|
(?:(?:www\.)?mtv\.com/videos/.+?/(?P<videoid>[0-9]+)/[^/]+$|
|
||||||
m\.mtv\.com/videos/video\.rbml\?.*?id=(?P<mgid>[^&]+))'''
|
m\.mtv\.com/videos/video\.rbml\?.*?id=(?P<mgid>[^&]+))'''
|
||||||
|
|
Loading…
Reference in a new issue