diff --git a/spotify/downloader.go b/spotify/downloader.go index aa7fb8a..8bac30c 100644 --- a/spotify/downloader.go +++ b/spotify/downloader.go @@ -146,8 +146,9 @@ func dlTrack(tracks []Track, path string) (int, error) { return } + DeleteFile(filepath.Join(path, fileName+".m4a")) + if DELETE_SONG_FILE { - DeleteFile(filepath.Join(path, fileName+".m4a")) DeleteFile(filepath.Join(path, fileName+".wav")) }