From 2ba7e62ef0d2729ede5371e363231db19406ee44 Mon Sep 17 00:00:00 2001 From: NFL_jiancx <1678594309@qq.com> Date: Mon, 9 Jun 2025 15:41:35 +0800 Subject: [PATCH] =?UTF-8?q?feat(WANGYIYUN):=20=E6=B7=BB=E5=8A=A0=E9=9F=B3?= =?UTF-8?q?=E4=B9=90=E4=B8=8B=E8=BD=BD=E5=AF=86=E9=92=A5=E5=B9=B6=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E7=89=88=E6=9C=AC=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在请求网易云音乐时添加了特定的密钥参数 - 将软件版本号从 4.2.6 升级到 4.2.7 --- NFLmusic.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/NFLmusic.py b/NFLmusic.py index cd32b92..cf51f85 100644 --- a/NFLmusic.py +++ b/NFLmusic.py @@ -163,7 +163,7 @@ def download_music(song_name, choose): singer = resp.json()["song_singer"] music_url = resp.json()["flac_url"] elif choice == "WANGYIYUN": - resp = requests.get(f"{url}?gm={song_name}&n={choose}&br={br}&num=60&type=json") + resp = requests.get(f"{url}?gm={song_name}&n={choose}&br={br}&num=60&type=json&key=Dragon5B887C2DC41AD03C93F06BAF4B7888C3") resp.close() id = resp.json()["link"].rsplit("=", 1)[1] try: @@ -329,7 +329,7 @@ def get_data_without_blocking(song_name): if choice == "KUWO": url1 = f"{url}?msg={song_name}&num=60&type=json" elif choice == "WANGYIYUN": - url1 = f"{url}?gm={song_name}&num=60&type=json" + url1 = f"{url}?gm={song_name}&num=60&type=json&key=Dragon5B887C2DC41AD03C93F06BAF4B7888C3" elif choice == "QQ": url1 = f"{url}?msg={song_name}&num=60&type=json" elif choice == "KUGOU": @@ -1331,7 +1331,7 @@ def search_local_song(): time.sleep(1) -version = "4.2.6" +version = "4.2.7" poem = "" appdata = os.getenv("APPDATA") make_resource()