From 36e47bcb548932d7a61c8949fda3c16b9d47a937 Mon Sep 17 00:00:00 2001 From: NFL_jiancx <1678594309@qq.com> Date: Sun, 16 Mar 2025 14:21:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=9F=B3=E4=B9=90=E4=B8=8B?= =?UTF-8?q?=E8=BD=BD=E5=A4=B1=E8=B4=A5=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- NFLmusic.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/NFLmusic.py b/NFLmusic.py index 110fc30..463c079 100644 --- a/NFLmusic.py +++ b/NFLmusic.py @@ -145,9 +145,9 @@ def download_music(song_name, choose): resp = requests.get(f"{url}/?msg={song_name}&n={choose}&br={br}&limit=60") resp.close() id = resp.json()["data"]["rid"].replace("MUSIC_", "") - resp_lrc = requests.get(f"https://api.jkyai.top/API/yyjhss.php?id={id}&type=kw") - resp_lrc.close() try: + resp_lrc = requests.get(f"https://api.jkyai.top/API/yyjhss.php?id={id}&type=kw") + resp_lrc.close() lrc = resp_lrc.json()["data"]["lrc"] except Exception as e: print(f"download_kw_lrc: {e}") @@ -159,9 +159,9 @@ def download_music(song_name, choose): resp = requests.get(f"{url}/?name={song_name}&n={choose}&br={br}&limit=60") resp.close() id = resp.json()["data"]["id"] - resp_lrc = requests.get(f"https://api.jkyai.top/API/yyjhss.php?id={id}&type=wy") - resp_lrc.close() try: + resp_lrc = requests.get(f"https://api.jkyai.top/API/yyjhss.php?id={id}&type=wy") + resp_lrc.close() lrc = resp_lrc.json()["data"]["lrc"] except Exception as e: print(f"download_wyy_lrc: {e}")