Merge pull request #314 from ritiek/fix-song-exist-check

Fix song exist check
This commit is contained in:
Linus Groh
2018-07-26 22:03:02 +02:00
committed by GitHub

View File

@@ -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