From: OzGav Date: Sat, 31 May 2025 12:26:18 +0000 (+1000) Subject: Update playlist correctly with deletion (#2205) X-Git-Url: https://git.kitaultman.com/?a=commitdiff_plain;h=aa1b14d3b9c60c402cf8c616f7363c524703b118;p=music-assistant-server.git Update playlist correctly with deletion (#2205) --- diff --git a/music_assistant/providers/filesystem_local/__init__.py b/music_assistant/providers/filesystem_local/__init__.py index 039263a4..b97d32fa 100644 --- a/music_assistant/providers/filesystem_local/__init__.py +++ b/music_assistant/providers/filesystem_local/__init__.py @@ -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."""