Compare commits
5 Commits
bbe244e125
...
5189898b6b
| Author | SHA1 | Date | |
|---|---|---|---|
| 5189898b6b | |||
| 76392863ad | |||
| 64bba311ae | |||
| d94318b3b9 | |||
| dad7043db7 |
1
.idea/NFLmusic.iml
generated
1
.idea/NFLmusic.iml
generated
@ -4,6 +4,7 @@
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<excludeFolder url="file://$MODULE_DIR$/.venv" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/venv" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/.venv1" />
|
||||
</content>
|
||||
<orderEntry type="jdk" jdkName="Python 3.6" jdkType="Python SDK" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
|
||||
15
NFLmusic.py
15
NFLmusic.py
@ -1,5 +1,4 @@
|
||||
import time
|
||||
from functools import total_ordering
|
||||
from tkinter import *
|
||||
import threading
|
||||
import pygame
|
||||
@ -126,7 +125,7 @@ def download_check(*value):
|
||||
|
||||
|
||||
def download_music(song_name, choose):
|
||||
global progressbar, downloading
|
||||
global progressbar, downloading, headers
|
||||
|
||||
def update_progressbar():
|
||||
while True:
|
||||
@ -228,7 +227,7 @@ def download_music(song_name, choose):
|
||||
lrc = ""
|
||||
lrc = lrc.replace("\\n", "\n")
|
||||
print("请求api:", url)
|
||||
response = requests.get(music_url, stream=True)
|
||||
response = requests.get(music_url, stream=True, headers=headers)
|
||||
print("下载直链:", music_url)
|
||||
formated = music_url.split("?")[0].rsplit(".", 1)[1]
|
||||
if formated not in ["m4a", "mp3", "ogg", "flac"]:
|
||||
@ -1328,7 +1327,7 @@ def search_local_song():
|
||||
time.sleep(1)
|
||||
|
||||
|
||||
version = "4.3.4"
|
||||
version = "4.3.5"
|
||||
poem = ""
|
||||
appdata = os.getenv("APPDATA")
|
||||
make_resource()
|
||||
@ -1433,6 +1432,14 @@ playingmode_dict = {
|
||||
1: "rand",
|
||||
2: "sequ"
|
||||
}
|
||||
headers = {
|
||||
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36',
|
||||
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8',
|
||||
'Accept-Language': 'en-US,en;q=0.5',
|
||||
'Accept-Encoding': 'gzip, deflate',
|
||||
'Connection': 'keep-alive',
|
||||
'Upgrade-Insecure-Requests': '1',
|
||||
}
|
||||
|
||||
if path == "./music":
|
||||
if os.path.exists("./music"):
|
||||
|
||||
18
test.py
18
test.py
@ -1,4 +1,16 @@
|
||||
import os
|
||||
import requests
|
||||
|
||||
audio_file = "C:/Users/Administrator/Music/国风堂#哦漏 - 知我.mp3"
|
||||
os.startfile(audio_file)
|
||||
url = "https://er-sycdn.kuwo.cn/5a1fdd7e1178a867af57c6b0ba576889/69468dc3/resource/30106/trackmedia/F000000bYDlc2XxKLs.flac"
|
||||
|
||||
headers = {
|
||||
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36',
|
||||
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8',
|
||||
'Accept-Language': 'en-US,en;q=0.5',
|
||||
'Accept-Encoding': 'gzip, deflate',
|
||||
'Connection': 'keep-alive',
|
||||
'Upgrade-Insecure-Requests': '1',
|
||||
}
|
||||
|
||||
total_length = int(requests.get(url, stream=True, headers=headers).headers.get('content-length'))
|
||||
|
||||
print(total_length)
|
||||
@ -1,3 +1,3 @@
|
||||
4.3.4
|
||||
4.3.5
|
||||
http://pan.nanfengling.cn/f/4Qc2/update.exe
|
||||
http://pan.nanfengling.cn/f/ye5cZ/NFLmusicv4.3.4.exe
|
||||
http://pan.nanfengling.cn/f/k1EhA/NFLmusicv4.3.5.exe
|
||||
@ -1,5 +1,5 @@
|
||||
v4.3.4 - 2025.10.3
|
||||
修复了聚合搜索下载的歌词无法被正常读取的问题
|
||||
v4.3.5 - 2025.12.20
|
||||
修复了酷我音乐源下载音乐文件为空的问题
|
||||
|
||||
本产品是南凤科技旗下的音乐下载器
|
||||
旨在提升用户体验,
|
||||
|
||||
Reference in New Issue
Block a user