mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-01-07 17:16:08 +00:00
[soundcloud] Fix typo in playlist base class name
This commit is contained in:
parent
8e45e1cc4d
commit
7518a61d41
|
@ -260,7 +260,7 @@ class SoundcloudIE(InfoExtractor):
|
||||||
return self._extract_info_dict(info, full_title, secret_token=token)
|
return self._extract_info_dict(info, full_title, secret_token=token)
|
||||||
|
|
||||||
|
|
||||||
class SoundcloudBaseIE(SoundcloudIE):
|
class SoundcloudPlaylistBaseIE(SoundcloudIE):
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _extract_id(e):
|
def _extract_id(e):
|
||||||
return compat_str(e['id']) if e.get('id') else None
|
return compat_str(e['id']) if e.get('id') else None
|
||||||
|
@ -273,7 +273,7 @@ class SoundcloudBaseIE(SoundcloudIE):
|
||||||
for track in tracks if track.get('permalink_url')]
|
for track in tracks if track.get('permalink_url')]
|
||||||
|
|
||||||
|
|
||||||
class SoundcloudSetIE(SoundcloudBaseIE):
|
class SoundcloudSetIE(SoundcloudPlaylistBaseIE):
|
||||||
_VALID_URL = r'https?://(?:(?:www|m)\.)?soundcloud\.com/(?P<uploader>[\w\d-]+)/sets/(?P<slug_title>[\w\d-]+)(?:/(?P<token>[^?/]+))?'
|
_VALID_URL = r'https?://(?:(?:www|m)\.)?soundcloud\.com/(?P<uploader>[\w\d-]+)/sets/(?P<slug_title>[\w\d-]+)(?:/(?P<token>[^?/]+))?'
|
||||||
IE_NAME = 'soundcloud:set'
|
IE_NAME = 'soundcloud:set'
|
||||||
_TESTS = [{
|
_TESTS = [{
|
||||||
|
@ -322,7 +322,7 @@ class SoundcloudSetIE(SoundcloudBaseIE):
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
class SoundcloudUserIE(SoundcloudBaseIE):
|
class SoundcloudUserIE(SoundcloudPlaylistBaseIE):
|
||||||
_VALID_URL = r'''(?x)
|
_VALID_URL = r'''(?x)
|
||||||
https?://
|
https?://
|
||||||
(?:(?:www|m)\.)?soundcloud\.com/
|
(?:(?:www|m)\.)?soundcloud\.com/
|
||||||
|
@ -461,7 +461,7 @@ class SoundcloudUserIE(SoundcloudBaseIE):
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
class SoundcloudPlaylistIE(SoundcloudBaseIE):
|
class SoundcloudPlaylistIE(SoundcloudPlaylistBaseIE):
|
||||||
_VALID_URL = r'https?://api\.soundcloud\.com/playlists/(?P<id>[0-9]+)(?:/?\?secret_token=(?P<token>[^&]+?))?$'
|
_VALID_URL = r'https?://api\.soundcloud\.com/playlists/(?P<id>[0-9]+)(?:/?\?secret_token=(?P<token>[^&]+?))?$'
|
||||||
IE_NAME = 'soundcloud:playlist'
|
IE_NAME = 'soundcloud:playlist'
|
||||||
_TESTS = [{
|
_TESTS = [{
|
||||||
|
|
Loading…
Reference in a new issue