Skip to content

🎧 Your Personal Streaming Service

fix(subsonic): always enable getNowPlaying endpoint regardless of configuration

Deluan603cccde11f9
diff --git a/server/subsonic/api.go b/server/subsonic/api.go
index f0e73c3d2..6c46c8251 100644
--- a/server/subsonic/api.go
+++ b/server/subsonic/api.go
@@ -118,11 +118,7 @@ func (api *Router) routes() http.Handler {
hr(r, "getAlbumList2", api.GetAlbumList2)
h(r, "getStarred", api.GetStarred)
h(r, "getStarred2", api.GetStarred2)
- if conf.Server.EnableNowPlaying {
- h(r, "getNowPlaying", api.GetNowPlaying)
- } else {
- h501(r, "getNowPlaying")
- }
+ h(r, "getNowPlaying", api.GetNowPlaying)
h(r, "getRandomSongs", api.GetRandomSongs)
h(r, "getSongsByGenre", api.GetSongsByGenre)
})