fix(search): 修复自定义搜索功能
- 将 search_words替换为 var7.get(),以修复自定义搜索无法找到歌曲的问题 - 更新软件版本号至 4.1.9
This commit is contained in:
@ -395,7 +395,7 @@ def playsound(*event):
|
||||
if var7.get() not in ["", lang.get(la, "ui.download.entry.song_name")]:
|
||||
music_dir_filtered = []
|
||||
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 = music_dir_filtered
|
||||
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)
|
||||
|
||||
|
||||
version = "4.1.8"
|
||||
version = "4.1.9"
|
||||
poem = ""
|
||||
appdata = os.getenv("APPDATA")
|
||||
make_resource()
|
||||
|
Reference in New Issue
Block a user