From 60b763c50f75021c6efc78563c126247d6089663 Mon Sep 17 00:00:00 2001 From: grqx_termux Date: Thu, 24 Oct 2024 15:49:16 +1300 Subject: [PATCH] `_TEST` -> `_TESTS` actually meant this. working on 2 branches simultanously can lead to results like this... --- yt_dlp/extractor/boomplay.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) 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 @@ class BoomplayBaseIE(InfoExtractor): 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 @@ class BoomplayMusicIE(BoomplayBaseIE): 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 @@ class BoomplayVideoIE(BoomplayBaseIE): 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 @@ class BoomplayEpisodeIE(BoomplayBaseIE): 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 @@ class BoomplaySearchURLIE(BoomplayBaseIE): 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(