diff --git a/SpotifyRecorder.py b/SpotifyRecorder.py index f3f35b0ee5c65f5a013ce8297c656cb8b8c9b0f6..d1d9bdb8c3c24baea2628c6029c5942766522532 100644 --- a/SpotifyRecorder.py +++ b/SpotifyRecorder.py @@ -127,6 +127,9 @@ class SpotifyRecorder: artist=self.__join_artists(track), album=track['track']['album']['name']) + LOGGER.debug(f'\t\tRemoving wav file "{filePathWav}"') + os.remove(filePathWav) + recordedTrackNumbers.append(indexInPlaylist) except Exception as e: LOGGER.error(f'An error occurred while recording track "{track["track"]["name"]}"', exc_info=e)