mirror of
https://github.com/THIS-IS-NOT-A-BACKUP/zspotify.git
synced 2025-06-30 23:03:12 +00:00
Merge pull request #50 from reduxionist/feature/do-not-skip-empty-files
Don't skip download if local file is empty.
This commit is contained in:
commit
278e4d1bb3
@ -573,7 +573,7 @@ def download_track(track_id_str: str, extra_paths=""):
|
||||
print("### SKIPPING:", song_name,
|
||||
"(SONG IS UNAVAILABLE) ###")
|
||||
else:
|
||||
if os.path.isfile(filename) and SKIP_EXISTING_FILES:
|
||||
if os.path.isfile(filename) and os.path.getsize(filename) and SKIP_EXISTING_FILES:
|
||||
print("### SKIPPING:", song_name,
|
||||
"(SONG ALREADY EXISTS) ###")
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user