From ff527fe8342c28cc59ccd32dcdb2d8df12ff438b Mon Sep 17 00:00:00 2001 From: Zotify Date: Sun, 2 Jul 2023 05:58:40 +0200 Subject: [PATCH] Fix lyrics extension replacement --- zotify/track.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zotify/track.py b/zotify/track.py index d1ef537..3f6d35c 100644 --- a/zotify/track.py +++ b/zotify/track.py @@ -256,7 +256,7 @@ def download_track(mode: str, track_id: str, extra_keys=None, disable_progressba if(Zotify.CONFIG.get_download_lyrics()): try: - get_song_lyrics(track_id, PurePath(str(filename).replace(ext, 'lrc'))) + get_song_lyrics(track_id, PurePath(str(filename)[:-3] + "lrc")) except ValueError: Printer.print(PrintChannel.SKIPS, f"### Skipping lyrics for {song_name}: lyrics not available ###") convert_audio_format(filename_temp)