diff --git a/yt_dlp/extractor/boomplay.py b/yt_dlp/extractor/boomplay.py index e6ecfe0e7b..7349e03b49 100644 --- a/yt_dlp/extractor/boomplay.py +++ b/yt_dlp/extractor/boomplay.py @@ -184,7 +184,7 @@ def _extract_playlist_entries(self, webpage, media_types, warn=True): class BoomplayMusicIE(BoomplayBaseIE): _VALID_URL = r'https?://(?:www\.)?boomplay\.com/songs/(?P\d+)' - _TEST = { + _TESTS = [{ 'url': 'https://www.boomplay.com/songs/165481965', 'md5': 'c5fb4f23e6aae98064230ef3c39c2178', 'info_dict': { @@ -202,7 +202,7 @@ class BoomplayMusicIE(BoomplayBaseIE): 'album': 'Legendary Battle', 'genres': ['Metal'], }, - } + }] def _real_extract(self, url): song_id = self._match_id(url) @@ -225,7 +225,7 @@ def _real_extract(self, url): class BoomplayVideoIE(BoomplayBaseIE): _VALID_URL = r'https?://(?:www\.)?boomplay\.com/video/(?P\d+)' - _TEST = { + _TESTS = [{ 'url': 'https://www.boomplay.com/video/1154892', 'md5': 'd9b67ad333d2292a82922062d065352d', 'info_dict': { @@ -239,7 +239,7 @@ class BoomplayVideoIE(BoomplayBaseIE): 'duration': 177.0, 'description': 'Autumn blues by Lugo', }, - } + }] def _real_extract(self, url): video_id = self._match_id(url) @@ -253,7 +253,7 @@ def _real_extract(self, url): class BoomplayEpisodeIE(BoomplayBaseIE): _VALID_URL = r'https?://(?:www\.)?boomplay\.com/episode/(?P\d+)' - _TEST = { + _TESTS = [{ 'url': 'https://www.boomplay.com/episode/7132706', 'md5': 'f26e236b764baa53d7a2cbb7e9ce6dc4', 'info_dict': { @@ -267,7 +267,7 @@ class BoomplayEpisodeIE(BoomplayBaseIE): 'upload_date': '20240506', 'description': 'md5:5ec684b281fa0f9e4c31b3ee20c5e57a', }, - } + }] def _real_extract(self, url): ep_id = self._match_id(url) @@ -283,7 +283,7 @@ def _real_extract(self, url): class BoomplayPodcastIE(BoomplayBaseIE): _VALID_URL = r'https?://(?:www\.)?boomplay\.com/podcasts/(?P\d+)' - _TEST = { + _TESTS = [{ 'url': 'https://www.boomplay.com/podcasts/5372', 'playlist_count': 200, 'info_dict': { @@ -295,7 +295,7 @@ class BoomplayPodcastIE(BoomplayBaseIE): 'comment_count': int, 'like_count': int, }, - } + }] def _real_extract(self, url): playlist_id = self._match_id(url) @@ -458,10 +458,10 @@ def _real_extract(self, url): class BoomplaySearchIE(SearchInfoExtractor): _SEARCH_KEY = 'boomplaysearch' _RETURN_TYPE = 'url' - _TEST = { + _TESTS = [{ 'url': 'boomplaysearch:rise of the fallen heroes', 'only_matching': True, - } + }] def _search_results(self, query): yield self.url_result(