This commit is contained in:
sentriz
2024-03-11 19:10:43 +01:00
parent 6b8d6b7184
commit 6ce1fe5a7e
4 changed files with 10 additions and 0 deletions

View File

@@ -95,6 +95,8 @@ func (c *Controller) ServeScrobble(r *http.Request) *spec.Response {
if err := scrobbleStatsUpdatePodcastEpisode(c.dbc, id.Value); err != nil {
return spec.NewError(0, "error updating stats: %v", err)
}
default:
return spec.NewError(10, "can't scrobble type %s", id.Type)
}
if scrobbleTrack.Track == "" {