From aa1b14d3b9c60c402cf8c616f7363c524703b118 Mon Sep 17 00:00:00 2001 From: OzGav Date: Sat, 31 May 2025 22:26:18 +1000 Subject: [PATCH] Update playlist correctly with deletion (#2205) --- music_assistant/providers/filesystem_local/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.""" -- 2.34.1