1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-12-11 09:27:55 +01:00

[spreaker] Make IE_NAME values unique

This commit is contained in:
Andrew Udvare 2017-08-10 16:42:45 -04:00
parent 2eb228df1c
commit a894bc1c3e

View File

@ -9,7 +9,7 @@ from ..utils import int_or_none, ExtractorError
class SpreakerPlaylistIE(InfoExtractor): class SpreakerPlaylistIE(InfoExtractor):
IE_NAME = 'spreaker' IE_NAME = 'spreaker:playlist'
_VALID_URL = r'^https?://(?:www\.)?spreaker\.com/show/[a-z0-9_-]+' _VALID_URL = r'^https?://(?:www\.)?spreaker\.com/show/[a-z0-9_-]+'
_TEST = { _TEST = {
'url': 'https://www.spreaker.com/show/success-with-music', 'url': 'https://www.spreaker.com/show/success-with-music',
@ -48,7 +48,7 @@ class SpreakerPlaylistIE(InfoExtractor):
class SpreakerAPIEpisodeIE(InfoExtractor): class SpreakerAPIEpisodeIE(InfoExtractor):
IE_NAME = 'spreaker' IE_NAME = 'spreaker:api'
_VALID_URL = r'^https?://(?:api\.)?spreaker\.com/(?:download/)?episode/(?P<id>[0-9]+)(?:/[^\.]+\.mp3$)?' _VALID_URL = r'^https?://(?:api\.)?spreaker\.com/(?:download/)?episode/(?P<id>[0-9]+)(?:/[^\.]+\.mp3$)?'
_TESTS = [ _TESTS = [
{ {