projects
/
music-assistant-server.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c6f40c
)
Update playlist correctly with deletion (#2205)
author
OzGav
<gavnosp@hotmail.com>
Sat, 31 May 2025 12:26:18 +0000
(22:26 +1000)
committer
GitHub
<noreply@github.com>
Sat, 31 May 2025 12:26:18 +0000
(14:26 +0200)
music_assistant/providers/filesystem_local/__init__.py
patch
|
blob
|
history
diff --git
a/music_assistant/providers/filesystem_local/__init__.py
b/music_assistant/providers/filesystem_local/__init__.py
index 039263a4e9a3f98d7c8824a8f52219d640066fa1..b97d32fa0c96a02b330541fff3e332f11bfeebf8 100644
(file)
--- 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."""