Skip to content
Snippets Groups Projects
Commit 9ff94944 authored by Robert Goldmann's avatar Robert Goldmann
Browse files

SpotifyRecorder: remove wav file on success

parent 06a719be
Branches
Tags
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment