diff --git a/core/playlists/rest_adapter.go b/core/playlists/rest_adapter.go index 818d8a5cb..5e0042d04 100644 --- a/core/playlists/rest_adapter.go +++ b/core/playlists/rest_adapter.go @@ -69,6 +69,9 @@ func (s *playlists) savePlaylist(ctx context.Context, pls *model.Playlist) (stri pls.UploadedImage = "" // Managed by image upload endpoint pls.ExternalImageURL = "" // Managed by M3U import / plugins only pls.EvaluatedAt = nil // Server-managed + pls.PluginID = "" // Server-managed (plugin system) + pls.PluginPlaylistID = "" // Server-managed (plugin system) + pls.ValidUntil = nil // Server-managed (plugin system) err := s.ds.Playlist(ctx).Put(pls) if err != nil { return "", err diff --git a/core/playlists/rest_adapter_test.go b/core/playlists/rest_adapter_test.go index 825c53656..832cdbda7 100644 --- a/core/playlists/rest_adapter_test.go +++ b/core/playlists/rest_adapter_test.go @@ -74,6 +74,9 @@ var _ = Describe("REST Adapter", func() { UploadedImage: "injected-image-path", ExternalImageURL: "http://evil.example.com/ssrf", EvaluatedAt: &now, + PluginID: "fake-plugin", + PluginPlaylistID: "fake-playlist-id", + ValidUntil: &now, } _, err := repo.Save(pls) Expect(err).ToNot(HaveOccurred()) @@ -90,6 +93,9 @@ var _ = Describe("REST Adapter", func() { Expect(saved.UploadedImage).To(BeEmpty()) Expect(saved.ExternalImageURL).To(BeEmpty()) Expect(saved.EvaluatedAt).To(BeNil()) + Expect(saved.PluginID).To(BeEmpty()) + Expect(saved.PluginPlaylistID).To(BeEmpty()) + Expect(saved.ValidUntil).To(BeNil()) }) })