Skip to content

Commit

Permalink
bugfix: fixed check for already downloaded songs (#1350)
Browse files Browse the repository at this point in the history
  • Loading branch information
xnetcat authored Jul 29, 2021
1 parent c2b27b2 commit 39a51ff
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions spotdl/search/song_gatherer.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ def get_song(track):
)
except (LookupError, ValueError):
return None, None
else:
except OSError:
if generate_m3u:
file_path = (
str(
Expand All @@ -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:
Expand Down

0 comments on commit 39a51ff

Please sign in to comment.