Complete backend redesign to using SQLite #4
1 changed files with 2 additions and 1 deletions
|
|
@ -23,6 +23,7 @@ elif "/" in soundLocation:
|
||||||
soundLocation += "/"
|
soundLocation += "/"
|
||||||
else:
|
else:
|
||||||
soundLocation += "\\"
|
soundLocation += "\\"
|
||||||
|
print(soundLocation)
|
||||||
#Create Virtual table for searching
|
#Create Virtual table for searching
|
||||||
songDatabase.execute("DROP TABLE virtualSongs;")
|
songDatabase.execute("DROP TABLE virtualSongs;")
|
||||||
songDatabase.execute("CREATE VIRTUAL TABLE virtualSongs USING fts5(filename, title, artist, art, length);")
|
songDatabase.execute("CREATE VIRTUAL TABLE virtualSongs USING fts5(filename, title, artist, art, length);")
|
||||||
|
|
@ -64,7 +65,7 @@ def playQueuedSongs():
|
||||||
player.stop()
|
player.stop()
|
||||||
skipNow = False
|
skipNow = False
|
||||||
songNext = playlist.pop(0)
|
songNext = playlist.pop(0)
|
||||||
media = fakeplayer.media_new("sound/"+songNext)
|
media = fakeplayer.media_new(soundLocation+songNext)
|
||||||
player.set_media(media)
|
player.set_media(media)
|
||||||
player.play()
|
player.play()
|
||||||
elif (skipNow==True or (z == "State.Ended" or z == "State.NothingSpecial" or z=="State.Stopped")):
|
elif (skipNow==True or (z == "State.Ended" or z == "State.NothingSpecial" or z=="State.Stopped")):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue