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"]
|
singer = resp.json()["song_singer"]
|
||||||
music_url = resp.json()["flac_url"]
|
music_url = resp.json()["flac_url"]
|
||||||
elif choice == "WANGYIYUN":
|
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()
|
resp.close()
|
||||||
id = resp.json()["link"].rsplit("=", 1)[1]
|
id = resp.json()["link"].rsplit("=", 1)[1]
|
||||||
try:
|
try:
|
||||||
@ -329,7 +329,7 @@ def get_data_without_blocking(song_name):
|
|||||||
if choice == "KUWO":
|
if choice == "KUWO":
|
||||||
url1 = f"{url}?msg={song_name}&num=60&type=json"
|
url1 = f"{url}?msg={song_name}&num=60&type=json"
|
||||||
elif choice == "WANGYIYUN":
|
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":
|
elif choice == "QQ":
|
||||||
url1 = f"{url}?msg={song_name}&num=60&type=json"
|
url1 = f"{url}?msg={song_name}&num=60&type=json"
|
||||||
elif choice == "KUGOU":
|
elif choice == "KUGOU":
|
||||||
@ -1331,7 +1331,7 @@ def search_local_song():
|
|||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
|
|
||||||
|
|
||||||
version = "4.2.6"
|
version = "4.2.7"
|
||||||
poem = ""
|
poem = ""
|
||||||
appdata = os.getenv("APPDATA")
|
appdata = os.getenv("APPDATA")
|
||||||
make_resource()
|
make_resource()
|
||||||
|
Reference in New Issue
Block a user