Make Jukebox available to Subsonic clients
This commit is contained in:
parent
248bf232ff
commit
2cd4358172
1 changed files with 2 additions and 0 deletions
|
|
@ -23,6 +23,7 @@ func (api *Router) GetUser(r *http.Request) (*responses.Subsonic, error) {
|
||||||
response.User.ScrobblingEnabled = true
|
response.User.ScrobblingEnabled = true
|
||||||
response.User.DownloadRole = conf.Server.EnableDownloads
|
response.User.DownloadRole = conf.Server.EnableDownloads
|
||||||
response.User.ShareRole = conf.Server.EnableSharing
|
response.User.ShareRole = conf.Server.EnableSharing
|
||||||
|
response.User.JukeboxRole = conf.Server.Jukebox.Enabled
|
||||||
return response, nil
|
return response, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -39,6 +40,7 @@ func (api *Router) GetUsers(r *http.Request) (*responses.Subsonic, error) {
|
||||||
user.ScrobblingEnabled = true
|
user.ScrobblingEnabled = true
|
||||||
user.DownloadRole = conf.Server.EnableDownloads
|
user.DownloadRole = conf.Server.EnableDownloads
|
||||||
user.ShareRole = conf.Server.EnableSharing
|
user.ShareRole = conf.Server.EnableSharing
|
||||||
|
user.JukeboxRole = conf.Server.Jukebox.Enabled
|
||||||
response := newResponse()
|
response := newResponse()
|
||||||
response.Users = &responses.Users{User: []responses.User{user}}
|
response.Users = &responses.Users{User: []responses.User{user}}
|
||||||
return response, nil
|
return response, nil
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue