From aa34d34596940a2a0b1a0e3e750da412d337bda4 Mon Sep 17 00:00:00 2001 From: grqx_wsl <173253225+grqx@users.noreply.github.com> Date: Wed, 23 Oct 2024 22:53:24 +1300 Subject: [PATCH] `_TEST` -> `_TESTS` --- yt_dlp/extractor/bilibili.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/yt_dlp/extractor/bilibili.py b/yt_dlp/extractor/bilibili.py index 62f68fbc6..ab98a80be 100644 --- a/yt_dlp/extractor/bilibili.py +++ b/yt_dlp/extractor/bilibili.py @@ -1727,7 +1727,7 @@ def _call_api(self, path, sid, query=None): class BilibiliAudioIE(BilibiliAudioBaseIE): _VALID_URL = r'https?://(?:www\.)?bilibili\.com/audio/au(?P\d+)' - _TEST = { + _TESTS = [{ 'url': 'https://www.bilibili.com/audio/au1003142', 'md5': 'fec4987014ec94ef9e666d4d158ad03b', 'info_dict': { @@ -1749,7 +1749,7 @@ class BilibiliAudioIE(BilibiliAudioBaseIE): 'uploader': 'tsukimi-つきみぐー', 'view_count': int, }, - } + }] def _real_extract(self, url): au_id = self._match_id(url) @@ -1797,7 +1797,7 @@ def _real_extract(self, url): class BilibiliAudioAlbumIE(BilibiliAudioBaseIE): _VALID_URL = r'https?://(?:www\.)?bilibili\.com/audio/am(?P\d+)' - _TEST = { + _TESTS = [{ 'url': 'https://www.bilibili.com/audio/am10624', 'info_dict': { 'id': '10624', @@ -1805,7 +1805,7 @@ class BilibiliAudioAlbumIE(BilibiliAudioBaseIE): 'description': '每天11:00更新,为你推送最新音乐', }, 'playlist_count': 19, - } + }] def _real_extract(self, url): am_id = self._match_id(url)