mirror of
https://github.com/THIS-IS-NOT-A-BACKUP/zspotify.git
synced 2025-07-01 15:23:15 +00:00
Fixed issue when deleting or moving file
This commit is contained in:
parent
9f6a40c900
commit
857b1d949a
@ -94,7 +94,7 @@ def download_track(track_id: str, extra_paths='', prefix=False, prefix_value='',
|
|||||||
print('\n### SKIPPING:', song_name,
|
print('\n### SKIPPING:', song_name,
|
||||||
'(SONG IS UNAVAILABLE) ###')
|
'(SONG IS UNAVAILABLE) ###')
|
||||||
else:
|
else:
|
||||||
if check_id and ZSpotify.get_config(SKIP_EXISTING_FILES):
|
if check_id and check_name and ZSpotify.get_config(SKIP_EXISTING_FILES):
|
||||||
print('\n### SKIPPING:', song_name,
|
print('\n### SKIPPING:', song_name,
|
||||||
'(SONG ALREADY EXISTS) ###')
|
'(SONG ALREADY EXISTS) ###')
|
||||||
else:
|
else:
|
||||||
@ -131,6 +131,7 @@ def download_track(track_id: str, extra_paths='', prefix=False, prefix_value='',
|
|||||||
set_music_thumbnail(filename, image_url)
|
set_music_thumbnail(filename, image_url)
|
||||||
|
|
||||||
# add song id to download directory's .song_ids file
|
# add song id to download directory's .song_ids file
|
||||||
|
if not check_id:
|
||||||
add_to_directory_song_ids(download_directory, scraped_song_id)
|
add_to_directory_song_ids(download_directory, scraped_song_id)
|
||||||
|
|
||||||
if not ZSpotify.get_config(OVERRIDE_AUTO_WAIT):
|
if not ZSpotify.get_config(OVERRIDE_AUTO_WAIT):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user