fix(search): 修复自定义搜索功能

- 将 search_words替换为 var7.get(),以修复自定义搜索无法找到歌曲的问题
- 更新软件版本号至 4.1.9
This commit is contained in:
2025-04-03 23:51:20 +08:00
parent e0020ed277
commit 62d76098bb

View File

@ -395,7 +395,7 @@ def playsound(*event):
if var7.get() not in ["", lang.get(la, "ui.download.entry.song_name")]: if var7.get() not in ["", lang.get(la, "ui.download.entry.song_name")]:
music_dir_filtered = [] music_dir_filtered = []
for file in music_dir: for file in music_dir:
if search_words in os.path.splitext(file)[0]: if var7.get() in os.path.splitext(file)[0]:
music_dir_filtered.append(file) music_dir_filtered.append(file)
music_dir = music_dir_filtered music_dir = music_dir_filtered
music_dir_without_endswith = [os.path.splitext(file)[0] for file in music_dir if music_dir_without_endswith = [os.path.splitext(file)[0] for file in music_dir if
@ -1238,7 +1238,7 @@ def search_local_song():
time.sleep(1) time.sleep(1)
version = "4.1.8" version = "4.1.9"
poem = "" poem = ""
appdata = os.getenv("APPDATA") appdata = os.getenv("APPDATA")
make_resource() make_resource()