From a984bbbc7a0cdbb5528040ea7abff2c9c94a76b9 Mon Sep 17 00:00:00 2001 From: Deluan Date: Thu, 25 May 2023 09:14:00 -0400 Subject: [PATCH] Make SmartPlaylists to always be seen as changed for Subsonic clients. --- server/subsonic/playlists.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/server/subsonic/playlists.go b/server/subsonic/playlists.go index 6d4092de3..2927f2197 100644 --- a/server/subsonic/playlists.go +++ b/server/subsonic/playlists.go @@ -5,6 +5,7 @@ import ( "errors" "fmt" "net/http" + "time" "github.com/navidrome/navidrome/log" "github.com/navidrome/navidrome/model" @@ -170,7 +171,11 @@ func (api *Router) buildPlaylist(p model.Playlist) *responses.Playlist { pls.Duration = int32(p.Duration) pls.Public = p.Public pls.Created = p.CreatedAt - pls.Changed = p.UpdatedAt pls.CoverArt = p.CoverArtID().String() + if p.IsSmartPlaylist() { + pls.Changed = time.Now() + } else { + pls.Changed = p.UpdatedAt + } return pls }