This commit is contained in:
Daniel Mason 2022-01-15 19:06:12 +13:00
parent 81a9e874ff
commit 3a3fe2077d
4 changed files with 6 additions and 3 deletions

View File

@ -2,7 +2,7 @@ stages:
- build
variables:
VERSION: 0.1.6
VERSION: 0.1.7
build-go:
image: golang:1.17

View File

@ -1,3 +1,6 @@
# 0.1.7
- Fix navidrome logging 2x scrobbles if second player is paused
# 0.1.6
- Allow UUID of 0 in artists/{uuid}/top to return site-wide stats
- Set images as failed if cannot find in spotify to prevent oversearching

View File

@ -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

View File

@ -825,7 +825,7 @@ func getServerInfo(w http.ResponseWriter, r *http.Request) {
}
info := ServerInfo{
Version: "0.1.6",
Version: "0.1.7",
RegistrationEnabled: registrationEnabled,
}