From d919259e5caa85b0d9cc37e8fa797884babcff14 Mon Sep 17 00:00:00 2001
From: Robert Goldmann <deadlocker@gmx.de>
Date: Sun, 14 Jan 2024 23:22:08 +0100
Subject: [PATCH] SpotifyRecorder: fix unsafe file name characters

---
 SpotifyRecorder.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/SpotifyRecorder.py b/SpotifyRecorder.py
index 79252c9..d8359d7 100644
--- a/SpotifyRecorder.py
+++ b/SpotifyRecorder.py
@@ -164,6 +164,7 @@ class SpotifyRecorder:
     def __determine_file_name(self, index: int, track) -> str:
         artists = self.__join_artists(track)
         fileName = f'{index} - {artists} - {track["track"]["name"]}'
+        fileName = fileName.replace('/', '_')
         return os.path.join(self._destinationFolder, fileName)
 
     @staticmethod
-- 
GitLab