From 149f38f393c32918b7b9be4cb4bd7dccc3be4489 Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Thu, 26 Jul 2018 21:40:35 +0200 Subject: [PATCH] Fix song exist check --- spotdl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spotdl.py b/spotdl.py index cadfce5..bfd1e26 100755 --- a/spotdl.py +++ b/spotdl.py @@ -29,7 +29,7 @@ def check_exists(music_file, raw_song, meta_tags): os.remove(os.path.join(const.args.folder, song)) continue # check if a song with the same name is already present in the given folder - if song == os.path.splitext(music_file)[0]: + if os.path.splitext(song)[0] == music_file: log.debug('Found an already existing song: "{}"'.format(song)) if internals.is_spotify(raw_song): # check if the already downloaded song has correct metadata