Added option to not add played to database
Added Search for inspiration Added song for match point
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user