mirror of
https://github.com/idanoo/GoScrobble
synced 2025-07-01 13:42:20 +00:00
0.1.7
This commit is contained in:
parent
81a9e874ff
commit
3a3fe2077d
4 changed files with 6 additions and 3 deletions
|
@ -139,7 +139,7 @@ func validateNavidromeConnection(url string, username string, hash string, salt
|
|||
// ParseNavidromeInput - Transform API data
|
||||
func ParseNavidromeInput(userUUID string, data NavidromeNowPlaying, ip net.IP, tx *sql.Tx) error {
|
||||
// Custom cache key - never log the same song twice in a row for now... (:
|
||||
lastPlayedTitle := getUserLastPlayed(userUUID)
|
||||
lastPlayedTitle := getUserLastPlayed(userUUID + fmt.Sprintf("%s", data.PlayerName))
|
||||
if lastPlayedTitle == data.Title+":"+data.Album {
|
||||
// If it matches last played song, skip it
|
||||
return nil
|
||||
|
|
|
@ -825,7 +825,7 @@ func getServerInfo(w http.ResponseWriter, r *http.Request) {
|
|||
}
|
||||
|
||||
info := ServerInfo{
|
||||
Version: "0.1.6",
|
||||
Version: "0.1.7",
|
||||
RegistrationEnabled: registrationEnabled,
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue