major stuff in the web.html

This commit is contained in:
2026-04-16 14:06:53 +02:00
parent f31a85a62c
commit 4ffcdc9e0a
4 changed files with 232 additions and 142 deletions
+2 -2
View File
@@ -142,10 +142,10 @@ class Module(ActiveModifier):
if isinstance(songs_to_add, list):
with self.file_lock:
if at_top:
with open(TOPLAY, "r") as f: data = f.read()
with open(TOPLAY, "r") as f: d = f.read()
with open(TOPLAY, "w") as f:
for song_path in songs_to_add: f.write(f"\n{song_path}\n")
f.write(data)
f.write(d)
else:
with open(TOPLAY, "a") as f:
for song_path in songs_to_add: f.write(f"\n{song_path}\n")