fix(music): 修复歌名搜索功能
- 将 music_dir 替换为 music_dir0,确保筛选后的歌曲列表被正确使用 - 更新软件版本号至4.1.7
This commit is contained in:
@ -347,7 +347,7 @@ def delete():
|
|||||||
if search_words in os.path.splitext(file)[0]:
|
if search_words in os.path.splitext(file)[0]:
|
||||||
music_dir_filtered.append(file)
|
music_dir_filtered.append(file)
|
||||||
music_dir0 = music_dir_filtered
|
music_dir0 = music_dir_filtered
|
||||||
music_dir_without_endswith0 = [os.path.splitext(file)[0] for file in music_dir if
|
music_dir_without_endswith0 = [os.path.splitext(file)[0] for file in music_dir0 if
|
||||||
file.endswith(('.mp3', '.flac', '.ogg', '.m4a'))]
|
file.endswith(('.mp3', '.flac', '.ogg', '.m4a'))]
|
||||||
abs_path = path + "/" + music_dir0[listbox1.curselection()[0]]
|
abs_path = path + "/" + music_dir0[listbox1.curselection()[0]]
|
||||||
abs_path_lrc = path + "/" + music_dir_without_endswith0[listbox1.curselection()[0]] + ".lrc"
|
abs_path_lrc = path + "/" + music_dir_without_endswith0[listbox1.curselection()[0]] + ".lrc"
|
||||||
@ -1238,7 +1238,7 @@ def search_local_song():
|
|||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
|
|
||||||
|
|
||||||
version = "4.1.6"
|
version = "4.1.7"
|
||||||
poem = ""
|
poem = ""
|
||||||
appdata = os.getenv("APPDATA")
|
appdata = os.getenv("APPDATA")
|
||||||
make_resource()
|
make_resource()
|
||||||
|
Reference in New Issue
Block a user