mirror of
https://github.com/navidrome/navidrome.git
synced 2026-11-19 15:23:36 +00:00
Now Playing backend implemented
This commit is contained in:
1 parent
9bfb61d994
commit
cc89cb5bd1
6 files changed
+49
-11
No files matched your search
@@ -30,6 +30,13 @@ func (c *MediaAnnotationController) Scrobble() {
|
||||
c.SendError(responses.ERROR_GENERIC, "Internal error")
|
||||
}
|
||||
beego.Info(fmt.Sprintf(`Scrobbled (%s) "%s" at %v`, id, mf.Title, time))
|
||||
} else {
|
||||
mf, err := c.scrobbler.NowPlaying(id)
|
||||
if err != nil {
|
||||
beego.Error("Error setting", id, "as current song:", err)
|
||||
c.SendError(responses.ERROR_GENERIC, "Internal error")
|
||||
}
|
||||
beego.Info(fmt.Sprintf(`Current Song (%s) "%s" at %v`, id, mf.Title, time))
|
||||
}
|
||||
|
||||
response := c.NewEmpty()
|
||||
|
||||
Reference in new issue
Block a user