From 776ebbbd3461f9cd378bda7be13dc662a5fee027 Mon Sep 17 00:00:00 2001 From: Kristy Fournier <124598538+kristy-fournier@users.noreply.github.com> Date: Sun, 6 Jul 2025 13:42:31 -0400 Subject: [PATCH] soundlocation is used for the file playing --- Server/webbyBits.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Server/webbyBits.py b/Server/webbyBits.py index 6839d6e..614e1b4 100644 --- a/Server/webbyBits.py +++ b/Server/webbyBits.py @@ -23,6 +23,7 @@ elif "/" in soundLocation: soundLocation += "/" else: soundLocation += "\\" +print(soundLocation) #Create Virtual table for searching songDatabase.execute("DROP TABLE virtualSongs;") songDatabase.execute("CREATE VIRTUAL TABLE virtualSongs USING fts5(filename, title, artist, art, length);") @@ -64,7 +65,7 @@ def playQueuedSongs(): player.stop() skipNow = False songNext = playlist.pop(0) - media = fakeplayer.media_new("sound/"+songNext) + media = fakeplayer.media_new(soundLocation+songNext) player.set_media(media) player.play() elif (skipNow==True or (z == "State.Ended" or z == "State.NothingSpecial" or z=="State.Stopped")):