mirror of
https://github.com/THIS-IS-NOT-A-BACKUP/zspotify.git
synced 2025-07-01 07:13:14 +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,
|
print("### SKIPPING:", song_name,
|
||||||
"(SONG IS UNAVAILABLE) ###")
|
"(SONG IS UNAVAILABLE) ###")
|
||||||
else:
|
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,
|
print("### SKIPPING:", song_name,
|
||||||
"(SONG ALREADY EXISTS) ###")
|
"(SONG ALREADY EXISTS) ###")
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user