scrobblerlog: use camelcase for constants

This commit is contained in:
Philipp Wolfer 2025-04-29 13:29:00 +02:00
parent d51c97c648
commit bcb1834994
No known key found for this signature in database
GPG key ID: 8FDF744D4919943B
3 changed files with 16 additions and 16 deletions

View file

@ -76,7 +76,7 @@ func (b *ScrobblerLogBackend) InitConfig(config *config.ServiceConfig) error {
b.log.FallbackTimezone = location
}
b.log = scrobblerlog.ScrobblerLog{
TZ: scrobblerlog.TZ_UTC,
TZ: scrobblerlog.TimezoneUTC,
Client: "Rockbox unknown $Revision$",
}
return nil
@ -197,7 +197,7 @@ func listenToRecord(listen models.Listen) scrobblerlog.Record {
var rating scrobblerlog.Rating
rockboxRating, ok := listen.AdditionalInfo["rockbox_rating"].(string)
if !ok || rockboxRating == "" {
rating = scrobblerlog.RATING_LISTENED
rating = scrobblerlog.RatingListened
} else {
rating = scrobblerlog.Rating(rating)
}