Compare commits
15 Commits
v4.2.7
...
84ece943ee
Author | SHA1 | Date | |
---|---|---|---|
84ece943ee | |||
5a6e7651ed | |||
aa5c31c257 | |||
7e30ddb51a | |||
a7b76fb2fe | |||
a237e3d73d | |||
33fc1144f4 | |||
2b931f7012 | |||
1849a77190 | |||
c76ea6af80 | |||
43ad0fa955 | |||
9e424631a9 | |||
ea0cc35f84 | |||
8fd22e05d2 | |||
a59ea236d5 |
67
NFLmusic.py
67
NFLmusic.py
@ -91,7 +91,6 @@ def detect_change():
|
||||
jsondata["theme"] != tmla.get(la)[var1.get()] or
|
||||
jsondata["path"] != var2.get()
|
||||
):
|
||||
|
||||
changed = True
|
||||
|
||||
|
||||
@ -143,7 +142,7 @@ def download_music(song_name, choose):
|
||||
progressbar.place(x=10, y=300)
|
||||
br = br_dict[var.get()]
|
||||
if choice == "KUWO":
|
||||
resp = requests.get(f"{url}?msg={song_name}&n={choose}&br={br}&num=60&type=json")
|
||||
resp = requests.get(f"{url}?msg={song_name}&n={choose}&br={br}&num=60&type=json&key=Dragon5B887C2DC41AD03C93F06BAF4B7888C3")
|
||||
resp.close()
|
||||
id = resp.json()["link"].rsplit("/", 1)[1]
|
||||
try:
|
||||
@ -177,7 +176,7 @@ def download_music(song_name, choose):
|
||||
singer = resp.json()["singer"]
|
||||
music_url = resp.json()["music_url"]
|
||||
elif choice == "QQ":
|
||||
resp = requests.get(f"{url}?msg={song_name}&n={choose}&num=60&type=json&br={br}")
|
||||
resp = requests.get(f"{url}?msg={song_name}&n={choose}&num=60&type=json&br={br}&key=Dragon5B887C2DC41AD03C93F06BAF4B7888C3")
|
||||
resp.close()
|
||||
try:
|
||||
lrc = resp.json()["data"]["lyric"]
|
||||
@ -188,34 +187,13 @@ def download_music(song_name, choose):
|
||||
singer = resp.json()["data"]["song_singer"]
|
||||
music_url = resp.json()["data"]["music_url"]
|
||||
elif choice == "KUGOU":
|
||||
resp = requests.get(f"{url}?gm={song_name}&n={choose}&num=60&type=json&quality={br}")
|
||||
song_name = song_name.replace(" ", "")
|
||||
resp = requests.get(f"{url}?msg={song_name}&n={choose}&num=60&type=json&br={br}&key=Dragon5B887C2DC41AD03C93F06BAF4B7888C3")
|
||||
resp.close()
|
||||
try:
|
||||
lrc = resp.json()["lyrics"]
|
||||
except Exception as e:
|
||||
print(f"download_kugou_lrc: {e}")
|
||||
lrc = ""
|
||||
music_name = resp.json()["title"]
|
||||
singer = resp.json()["singer"]
|
||||
music_url = resp.json()["music_url"]
|
||||
elif choice == "DOUYIN":
|
||||
resp = requests.get(f"{url}?msg={song_name}&n={choose}&num=50&type=json")
|
||||
resp.close()
|
||||
try:
|
||||
lrc = resp.json()["data"]["lrc"]
|
||||
except Exception as e:
|
||||
print(f"download_qishui_lrc: {e}")
|
||||
lrc = ""
|
||||
music_name = resp.json()["data"]["title"]
|
||||
singer = resp.json()["data"]["singer"]
|
||||
music_url = resp.json()["data"]["url"]
|
||||
elif choice == "XIAOFEN":
|
||||
resp = requests.get(f"{url}?msg={song_name}&n={choose}&num=60&type=json&br={br}")
|
||||
resp.close()
|
||||
try:
|
||||
lrc = resp.json()["lrc"]
|
||||
except Exception as e:
|
||||
print(f"download_xiaofen_lrc: {e}")
|
||||
print(f"download_kg_lrc: {e}")
|
||||
lrc = ""
|
||||
music_name = resp.json()["title"]
|
||||
singer = resp.json()["singer"]
|
||||
@ -327,17 +305,13 @@ def get_data_without_blocking(song_name):
|
||||
button0["state"] = "disabled"
|
||||
songlist.delete(*songlist.get_children())
|
||||
if choice == "KUWO":
|
||||
url1 = f"{url}?msg={song_name}&num=60&type=json"
|
||||
url1 = f"{url}?msg={song_name}&num=60&type=json&key=Dragon5B887C2DC41AD03C93F06BAF4B7888C3"
|
||||
elif choice == "WANGYIYUN":
|
||||
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"
|
||||
url1 = f"{url}?msg={song_name}&num=60&type=json&key=Dragon5B887C2DC41AD03C93F06BAF4B7888C3"
|
||||
elif choice == "KUGOU":
|
||||
url1 = f"{url}?gm={song_name}&num=60&type=json"
|
||||
elif choice == "DOUYIN":
|
||||
url1 = f"{url}?msg={song_name}&num=50&type=json"
|
||||
elif choice == "XIAOFEN":
|
||||
url1 = f"{url}?msg={song_name}&num=60&type=json"
|
||||
url1 = f"{url}?msg={song_name.replace(' ', '')}&num=60&type=json&key=Dragon5B887C2DC41AD03C93F06BAF4B7888C3"
|
||||
resp = requests.get(url1)
|
||||
jsondata = resp.json()["data"]
|
||||
resp.close()
|
||||
@ -359,14 +333,6 @@ def get_data_without_blocking(song_name):
|
||||
full_name = jsondata[index]["title"]
|
||||
artist = jsondata[index]["singer"]
|
||||
album = ""
|
||||
elif choice == "DOUYIN":
|
||||
full_name = jsondata[index]["title"]
|
||||
artist = jsondata[index]["singer"]
|
||||
album = ""
|
||||
elif choice == "XIAOFEN":
|
||||
full_name = jsondata[index]["title"]
|
||||
artist = jsondata[index]["singer"]
|
||||
album = ""
|
||||
songlist.insert("", "end", values=(full_name, artist, album))
|
||||
except requests.exceptions.JSONDecodeError:
|
||||
resp_text = resp.text
|
||||
@ -444,10 +410,11 @@ def delete():
|
||||
os.remove(abs_path_lrc)
|
||||
except:
|
||||
pass
|
||||
music_dir_without_endswith.remove(filtered_list[listbox1.curselection()[0]])
|
||||
music_dir.remove(music_dir[listbox1.curselection()[0]])
|
||||
music_dir_without_endswith.remove(listbox1.get(0, END)[listbox1.curselection()[0]])
|
||||
del music_dir[listbox1.curselection()[0]]
|
||||
listbox1.delete(listbox1.curselection()[0])
|
||||
except:
|
||||
except Exception as e:
|
||||
print(e, type(e))
|
||||
tkinter.messagebox.showerror(title=lang.get(la, "mbox.title.delete_fail"),
|
||||
message=lang.get(la, "mbox.text.delete_fail_no_permission", ))
|
||||
except FileNotFoundError:
|
||||
@ -511,9 +478,7 @@ def playmusic(music_path):
|
||||
try:
|
||||
music_player.play_music(music_path)
|
||||
except pygame.error:
|
||||
tkinter.messagebox.showerror(title=lang.get(la, "mbox.title.play_fail"),
|
||||
message=lang.get(la, "mbox.text.play_fail_unrecognized_format",
|
||||
{"_file_": music_name}))
|
||||
os.startfile(music_path)
|
||||
except:
|
||||
pass
|
||||
|
||||
@ -1331,7 +1296,7 @@ def search_local_song():
|
||||
time.sleep(1)
|
||||
|
||||
|
||||
version = "4.2.7"
|
||||
version = "4.3.2"
|
||||
poem = ""
|
||||
appdata = os.getenv("APPDATA")
|
||||
make_resource()
|
||||
@ -1693,11 +1658,9 @@ themeLabel.place(x=10, y=25)
|
||||
# 基本设置
|
||||
repo_dict = {
|
||||
"酷我音乐": "KUWO",
|
||||
"网易云音乐": "WANGYIYUN",
|
||||
"QQ音乐": "QQ",
|
||||
"网易云音乐": "WANGYIYUN",
|
||||
"酷狗音乐": "KUGOU",
|
||||
"汽水音乐": "DOUYIN",
|
||||
"小粉音乐": "XIAOFEN"
|
||||
}
|
||||
repo_dict_reverse = {}
|
||||
for repo in repo_dict:
|
||||
|
@ -5,10 +5,8 @@ usercache = {
|
||||
"br": {
|
||||
"QQ": "HQ高音质",
|
||||
"KUWO": "高品音质",
|
||||
"KUGOU": "HQ高品音质",
|
||||
"WANGYIYUN": "极高音质",
|
||||
"DOUYIN": "HQ高音质",
|
||||
"XIAOFEN": "高品音质"
|
||||
"KUGOU": "高品音质"
|
||||
},
|
||||
"choice": "KUWO",
|
||||
"auto_update": True,
|
||||
@ -17,25 +15,17 @@ usercache = {
|
||||
}
|
||||
|
||||
api_data = {
|
||||
"QQ": ["https://www.hhlqilongzhu.cn/api/dg_QQmusicflac.php",
|
||||
"QQ": ["https://sdkapi.hhlqilongzhu.cn/api/QQmusic/",
|
||||
{
|
||||
"臻品母带": 10,
|
||||
"SQ无损": 1,
|
||||
"HQ高音质": 2
|
||||
"HQ高音质": 2,
|
||||
"标准音质": 10
|
||||
}
|
||||
],
|
||||
"KUWO": ["https://www.hhlqilongzhu.cn/api/dg_kuwomusic.php",
|
||||
"KUWO": ["https://sdkapi.hhlqilongzhu.cn/api/dgMusic_kuwo/",
|
||||
{
|
||||
"无损音质": 1,
|
||||
"高品音质": 2,
|
||||
}
|
||||
],
|
||||
"KUGOU": ["https://www.hhlqilongzhu.cn/api/dg_kgmusic.php",
|
||||
{
|
||||
"蝰蛇全景声": "viper_atmos",
|
||||
"无损音质": "flac",
|
||||
"HQ高品音质": 320,
|
||||
"标准音质": 128
|
||||
"高品音质": 2
|
||||
}
|
||||
],
|
||||
"WANGYIYUN": ["https://sdkapi.hhlqilongzhu.cn/api/dgMusic_wyy",
|
||||
@ -49,17 +39,11 @@ api_data = {
|
||||
"超清母带": 7
|
||||
}
|
||||
],
|
||||
"DOUYIN": ["https://www.hhlqilongzhu.cn/api/dg_douyinmusic.php",
|
||||
"KUGOU": ["https://sdkapi.hhlqilongzhu.cn/api/dgMusic_kugou/",
|
||||
{
|
||||
"HQ高音质": 2,
|
||||
"高品音质": 1
|
||||
}
|
||||
],
|
||||
"XIAOFEN": ["https://www.hhlqilongzhu.cn/api/dg_mgmusic_24bit.php",
|
||||
{
|
||||
"无损音质": 1,
|
||||
"高品音质": 2,
|
||||
}
|
||||
],
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
|
4
test.py
Normal file
4
test.py
Normal file
@ -0,0 +1,4 @@
|
||||
import os
|
||||
|
||||
audio_file = "C:/Users/Administrator/Music/国风堂#哦漏 - 知我.mp3"
|
||||
os.startfile(audio_file)
|
@ -1,3 +1,3 @@
|
||||
4.2.7
|
||||
4.3.2
|
||||
http://pan.nanfengling.cn/f/4Qc2/update.exe
|
||||
http://pan.nanfengling.cn/f/MdkhO/NFLmusicv4.2.7.exe
|
||||
http://pan.nanfengling.cn/f/gj0UE/NFLmusicv4.3.2.exe
|
@ -1,5 +1,6 @@
|
||||
v4.2.7 - 2025.6.9
|
||||
修复了网易云音乐下载源无法正常使用的问题
|
||||
v4.3.2 - 2025.9.6
|
||||
新增酷狗音乐下载源
|
||||
修复部分已知问题
|
||||
|
||||
本产品是南凤科技旗下的音乐下载器
|
||||
旨在提升用户体验,
|
||||
|
Reference in New Issue
Block a user