From fbf94f87e154a8d905aee01fab87bf64407b2779 Mon Sep 17 00:00:00 2001 From: Jakub Kot Date: Wed, 28 Jul 2021 19:53:17 +0200 Subject: [PATCH] bugfix: fixed check for already downloaded songs --- spotdl/search/song_gatherer.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/spotdl/search/song_gatherer.py b/spotdl/search/song_gatherer.py index e2c6ec889..4a7fb0e91 100644 --- a/spotdl/search/song_gatherer.py +++ b/spotdl/search/song_gatherer.py @@ -241,7 +241,7 @@ def get_song(track): ) except (LookupError, ValueError): return None, None - else: + except OSError: if generate_m3u: file_path = ( str( @@ -268,8 +268,10 @@ def get_song(track): else "mp3" ) - return song, f"{file_path}\n" + return None, f"{file_path}\n" + return None, None + else: return song, None with concurrent.futures.ThreadPoolExecutor(max_workers=threads) as executor: