Musik ersetzt Audiostream wenn neues Genre gefragt wird

This commit is contained in:
2026-01-24 22:19:38 +01:00
parent 31a10f5aeb
commit 0711fa6a08
3 changed files with 9 additions and 4 deletions

View File

@@ -26,6 +26,12 @@ class MusicPlayer:
if not os.path.isdir(folder):
return False
if self.playing or self.paused:
self.player.stop()
self.playing = False
self.paused = False
self.files = [
os.path.join(folder, f)
for f in os.listdir(folder)