feat(WANGYIYUN): 添加音乐下载密钥并更新版本号
- 在请求网易云音乐时添加了特定的密钥参数 - 将软件版本号从 4.2.6 升级到 4.2.7
This commit is contained in:
@ -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()
|
||||
|
Reference in New Issue
Block a user