Added option to not add played to database

Added Search for inspiration
Added song for match point
This commit is contained in:
2023-01-01 01:21:37 +01:00
parent 4e876fa28f
commit 8369b5f0a1
10 changed files with 660 additions and 502 deletions

View File

@@ -36,12 +36,17 @@ func Reset() {
func AddLatestToQue() {
if lastFetched.Path != "" {
currentSong = len(songQue)
db.AddGamePlayed(lastFetched.GameId)
songQue = append(songQue, lastFetched)
lastFetched = models.SongData{}
}
}
func AddLatestPlayed() {
if lastFetched.Path != "" {
db.AddGamePlayed(lastFetched.GameId)
}
}
func GetRandomSong() string {
if games == nil || len(games) == 0 {
games = db.FindAllGames()