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

SpotifyRecorder: fix unsafe file name characters

parent 83b28368
Branches
Tags
No related merge requests found
...@@ -164,6 +164,7 @@ class SpotifyRecorder: ...@@ -164,6 +164,7 @@ class SpotifyRecorder:
def __determine_file_name(self, index: int, track) -> str: def __determine_file_name(self, index: int, track) -> str:
artists = self.__join_artists(track) artists = self.__join_artists(track)
fileName = f'{index} - {artists} - {track["track"]["name"]}' fileName = f'{index} - {artists} - {track["track"]["name"]}'
fileName = fileName.replace('/', '_')
return os.path.join(self._destinationFolder, fileName) return os.path.join(self._destinationFolder, fileName)
@staticmethod @staticmethod
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment