Update playlist correctly with deletion (#2205)
authorOzGav <gavnosp@hotmail.com>
Sat, 31 May 2025 12:26:18 +0000 (22:26 +1000)
committerGitHub <noreply@github.com>
Sat, 31 May 2025 12:26:18 +0000 (14:26 +0200)
music_assistant/providers/filesystem_local/__init__.py

index 039263a4e9a3f98d7c8824a8f52219d640066fa1..b97d32fa0c96a02b330541fff3e332f11bfeebf8 100644 (file)
@@ -826,7 +826,7 @@ class LocalFileSystemProvider(MusicProvider):
         for item in playlist_items:
             new_playlist_data += f"\n#EXTINF:{item.length or 0},{item.title}\n{item.path}\n"
         async with aiofiles.open(playlist_filename, "w", encoding="utf-8") as _file:
-            await _file.write(playlist_data)
+            await _file.write(new_playlist_data)
 
     async def create_playlist(self, name: str) -> Playlist:
         """Create a new playlist on provider with given name."""