mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-13 10:47:19 +03:00
Fixed build
This commit is contained in:
parent
4e6cd7e05d
commit
bbb3e26600
@ -56,7 +56,7 @@ func (c *AlbumListController) getAlbumList() (engine.Entries, error) {
|
||||
func (c *AlbumListController) GetAlbumList() {
|
||||
albums, err := c.getAlbumList()
|
||||
if err != nil {
|
||||
c.SendError(responses.ErrorGeneric, err.Error)
|
||||
c.SendError(responses.ErrorGeneric, err.Error())
|
||||
}
|
||||
|
||||
response := c.NewEmpty()
|
||||
@ -67,7 +67,7 @@ func (c *AlbumListController) GetAlbumList() {
|
||||
func (c *AlbumListController) GetAlbumList2() {
|
||||
albums, err := c.getAlbumList()
|
||||
if err != nil {
|
||||
c.SendError(responses.ErrorGeneric, err.Error)
|
||||
c.SendError(responses.ErrorGeneric, err.Error())
|
||||
}
|
||||
|
||||
response := c.NewEmpty()
|
||||
|
@ -87,7 +87,7 @@ func (c *MediaAnnotationController) Scrobble() {
|
||||
ids := c.RequiredParamStrings("id", "Required id parameter is missing")
|
||||
times := c.ParamTimes("time")
|
||||
if len(times) > 0 && len(times) != len(ids) {
|
||||
c.SendError(responses.ErrorGeneric, fmt.Sprintf("Wrong number of timestamps: %d", len(times)))
|
||||
c.SendError(responses.ErrorGeneric, "Wrong number of timestamps: %d", len(times))
|
||||
}
|
||||
submission := c.ParamBool("submission", true)
|
||||
playerId := 1 // TODO Multiple players, based on playerName/username/clientIP(?)
|
||||
|
Loading…
x
Reference in New Issue
Block a user