Skip to content

Commit

Permalink
Make Jukebox available to Subsonic clients
Browse files Browse the repository at this point in the history
  • Loading branch information
deluan committed Sep 15, 2023
1 parent 248bf23 commit 2cd4358
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/subsonic/users.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ func (api *Router) GetUser(r *http.Request) (*responses.Subsonic, error) {
response.User.ScrobblingEnabled = true
response.User.DownloadRole = conf.Server.EnableDownloads
response.User.ShareRole = conf.Server.EnableSharing
response.User.JukeboxRole = conf.Server.Jukebox.Enabled
return response, nil
}

Expand All @@ -39,6 +40,7 @@ func (api *Router) GetUsers(r *http.Request) (*responses.Subsonic, error) {
user.ScrobblingEnabled = true
user.DownloadRole = conf.Server.EnableDownloads
user.ShareRole = conf.Server.EnableSharing
user.JukeboxRole = conf.Server.Jukebox.Enabled
response := newResponse()
response.Users = &responses.Users{User: []responses.User{user}}
return response, nil
Expand Down

0 comments on commit 2cd4358

Please sign in to comment.