Compare commits
6 Commits
84ece943ee
...
99857387dc
| Author | SHA1 | Date | |
|---|---|---|---|
| 99857387dc | |||
| d1aac65f25 | |||
| 08da529d84 | |||
| a47c00e991 | |||
| 8aae403c86 | |||
| 938f63a073 |
2
.idea/NFLmusic.iml
generated
2
.idea/NFLmusic.iml
generated
@ -5,7 +5,7 @@
|
||||
<excludeFolder url="file://$MODULE_DIR$/.venv" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/venv" />
|
||||
</content>
|
||||
<orderEntry type="jdk" jdkName="Python 3.6 (NFLmusic)" jdkType="Python SDK" />
|
||||
<orderEntry type="jdk" jdkName="Python 3.6" jdkType="Python SDK" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
</module>
|
||||
2
.idea/misc.xml
generated
2
.idea/misc.xml
generated
@ -3,5 +3,5 @@
|
||||
<component name="Black">
|
||||
<option name="sdkName" value="Python 3.6 (NFLmusic)" />
|
||||
</component>
|
||||
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.6 (NFLmusic)" project-jdk-type="Python SDK" />
|
||||
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.6" project-jdk-type="Python SDK" />
|
||||
</project>
|
||||
43
NFLmusic.py
43
NFLmusic.py
@ -198,6 +198,18 @@ def download_music(song_name, choose):
|
||||
music_name = resp.json()["title"]
|
||||
singer = resp.json()["singer"]
|
||||
music_url = resp.json()["music_url"]
|
||||
elif choice == "JUHE":
|
||||
song_name = song_name.replace(" ", "")
|
||||
resp = requests.get(f"{url}?msg={song_name}&n={choose}&num=60&type=json&key=Dragon5B887C2DC41AD03C93F06BAF4B7888C3")
|
||||
resp.close()
|
||||
try:
|
||||
lrc = resp.json()["data"]["lyric"]
|
||||
except Exception as e:
|
||||
print(f"download_kg_lrc: {e}")
|
||||
lrc = ""
|
||||
music_name = resp.json()["data"]["title"]
|
||||
singer = resp.json()["data"]["singer"]
|
||||
music_url = resp.json()["data"]["url"]
|
||||
else:
|
||||
lrc = ""
|
||||
lrc = lrc.replace("\\n", "\n")
|
||||
@ -312,27 +324,33 @@ def get_data_without_blocking(song_name):
|
||||
url1 = f"{url}?msg={song_name}&num=60&type=json&key=Dragon5B887C2DC41AD03C93F06BAF4B7888C3"
|
||||
elif choice == "KUGOU":
|
||||
url1 = f"{url}?msg={song_name.replace(' ', '')}&num=60&type=json&key=Dragon5B887C2DC41AD03C93F06BAF4B7888C3"
|
||||
elif choice == "JUHE":
|
||||
url1 = f"{url}?msg={song_name.replace(' ', '')}&num=60&type=json&key=Dragon5B887C2DC41AD03C93F06BAF4B7888C3"
|
||||
resp = requests.get(url1)
|
||||
jsondata = resp.json()["data"]
|
||||
jsondata = resp.json()
|
||||
resp.close()
|
||||
last_search_target = song_name
|
||||
for index in range(len(jsondata)):
|
||||
for index in range(len(jsondata["data"])):
|
||||
if choice == "KUWO":
|
||||
full_name = jsondata[index]["songname"]
|
||||
artist = jsondata[index]["singer"]
|
||||
album = jsondata[index]["song_rid"]
|
||||
full_name = jsondata["data"][index]["songname"]
|
||||
artist = jsondata["data"][index]["singer"]
|
||||
album = jsondata["data"][index]["song_rid"]
|
||||
elif choice == "WANGYIYUN":
|
||||
full_name = jsondata[index]["title"]
|
||||
artist = jsondata[index]["singer"]
|
||||
album = jsondata[index]["songid"]
|
||||
full_name = jsondata["data"][index]["title"]
|
||||
artist = jsondata["data"][index]["singer"]
|
||||
album = jsondata["data"][index]["songid"]
|
||||
elif choice == "QQ":
|
||||
full_name = jsondata[index]["song_title"]
|
||||
artist = jsondata[index]["song_singer"]
|
||||
full_name = jsondata["data"][index]["song_title"]
|
||||
artist = jsondata["data"][index]["song_singer"]
|
||||
album = ""
|
||||
elif choice == "KUGOU":
|
||||
full_name = jsondata["data"][index]["title"]
|
||||
artist = jsondata["data"][index]["singer"]
|
||||
album = ""
|
||||
elif choice == "JUHE":
|
||||
full_name = jsondata[index]["title"]
|
||||
artist = jsondata[index]["singer"]
|
||||
album = ""
|
||||
album = jsondata[index]["app"]
|
||||
songlist.insert("", "end", values=(full_name, artist, album))
|
||||
except requests.exceptions.JSONDecodeError:
|
||||
resp_text = resp.text
|
||||
@ -1296,7 +1314,7 @@ def search_local_song():
|
||||
time.sleep(1)
|
||||
|
||||
|
||||
version = "4.3.2"
|
||||
version = "4.3.3"
|
||||
poem = ""
|
||||
appdata = os.getenv("APPDATA")
|
||||
make_resource()
|
||||
@ -1661,6 +1679,7 @@ repo_dict = {
|
||||
"QQ音乐": "QQ",
|
||||
"网易云音乐": "WANGYIYUN",
|
||||
"酷狗音乐": "KUGOU",
|
||||
"聚合搜索": "JUHE"
|
||||
}
|
||||
repo_dict_reverse = {}
|
||||
for repo in repo_dict:
|
||||
|
||||
@ -6,9 +6,10 @@ usercache = {
|
||||
"QQ": "HQ高音质",
|
||||
"KUWO": "高品音质",
|
||||
"WANGYIYUN": "极高音质",
|
||||
"KUGOU": "高品音质"
|
||||
"KUGOU": "高品音质",
|
||||
"JUHE": "默认音质"
|
||||
},
|
||||
"choice": "KUWO",
|
||||
"choice": "QQ",
|
||||
"auto_update": True,
|
||||
"playing_mode": 0,
|
||||
"auto_play": False
|
||||
@ -43,6 +44,11 @@ api_data = {
|
||||
{
|
||||
"高品音质": 1
|
||||
}
|
||||
],
|
||||
"JUHE": ["https://sdkapi.hhlqilongzhu.cn/api/juhe_dgmusic/",
|
||||
{
|
||||
"默认音质": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
@ -1,3 +1,3 @@
|
||||
4.3.2
|
||||
4.3.3
|
||||
http://pan.nanfengling.cn/f/4Qc2/update.exe
|
||||
http://pan.nanfengling.cn/f/gj0UE/NFLmusicv4.3.2.exe
|
||||
http://pan.nanfengling.cn/f/bBXfv/NFLmusicv4.3.3.exe
|
||||
@ -1,6 +1,5 @@
|
||||
v4.3.2 - 2025.9.6
|
||||
新增酷狗音乐下载源
|
||||
修复部分已知问题
|
||||
v4.3.3 - 2025.10.3
|
||||
新增了聚合音乐搜索下载源
|
||||
|
||||
本产品是南凤科技旗下的音乐下载器
|
||||
旨在提升用户体验,
|
||||
|
||||
Reference in New Issue
Block a user