fix(subsonic): always enable getNowPlaying endpoint regardless of configuration
Signed-off-by: Deluan <deluan@navidrome.org>
This commit is contained in:
parent
6ed6524752
commit
603cccde11
1 changed files with 1 additions and 5 deletions
|
|
@ -118,11 +118,7 @@ func (api *Router) routes() http.Handler {
|
||||||
hr(r, "getAlbumList2", api.GetAlbumList2)
|
hr(r, "getAlbumList2", api.GetAlbumList2)
|
||||||
h(r, "getStarred", api.GetStarred)
|
h(r, "getStarred", api.GetStarred)
|
||||||
h(r, "getStarred2", api.GetStarred2)
|
h(r, "getStarred2", api.GetStarred2)
|
||||||
if conf.Server.EnableNowPlaying {
|
h(r, "getNowPlaying", api.GetNowPlaying)
|
||||||
h(r, "getNowPlaying", api.GetNowPlaying)
|
|
||||||
} else {
|
|
||||||
h501(r, "getNowPlaying")
|
|
||||||
}
|
|
||||||
h(r, "getRandomSongs", api.GetRandomSongs)
|
h(r, "getRandomSongs", api.GetRandomSongs)
|
||||||
h(r, "getSongsByGenre", api.GetSongsByGenre)
|
h(r, "getSongsByGenre", api.GetSongsByGenre)
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue