soundlocation is used for the file playing

This commit is contained in:
Kristy Fournier 2025-07-06 13:42:31 -04:00
parent d63847761c
commit 776ebbbd34

View file

@ -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")):