From 6b72640e73f8b78008c2f65b99ddde937cd226ad Mon Sep 17 00:00:00 2001 From: yutent Date: Sun, 27 Aug 2023 13:21:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=80=E5=A4=84=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E8=AF=BB=E5=8F=96=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- usr/lib/sonist/window.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/usr/lib/sonist/window.py b/usr/lib/sonist/window.py index fba1ddd..c04d7b3 100644 --- a/usr/lib/sonist/window.py +++ b/usr/lib/sonist/window.py @@ -317,11 +317,10 @@ class SonistWindow(Gtk.Window): # 更新歌曲信息 self.title_box.update(f"{song.get('artist')} - {song.get('title')}") - title = song.get('title') - title_hex = base64.b64encode(title.encode()).hex() + title_hex = base64.b64encode(song.get('title').encode()).hex() filepath = f"{self.app.album_cache_dir}/{title_hex}.png" - songpath = f"{self.app.music_dir}/{title}" + songpath = f"{self.app.music_dir}/{song.get('file')}" if os.path.isfile(filepath): self.update_album(filepath)