From 7ce5f673e1828aa3462798aa9bdd0e68a5b87af2 Mon Sep 17 00:00:00 2001 From: redxef Date: Wed, 30 Oct 2024 15:20:33 +0100 Subject: [PATCH] fix!: don't share playlists with other users. --- .../ScheduledTasks/GeneratePlaylist.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Jellyfin.Plugin.SmartPlaylist/ScheduledTasks/GeneratePlaylist.cs b/Jellyfin.Plugin.SmartPlaylist/ScheduledTasks/GeneratePlaylist.cs index 7632827..1289de0 100644 --- a/Jellyfin.Plugin.SmartPlaylist/ScheduledTasks/GeneratePlaylist.cs +++ b/Jellyfin.Plugin.SmartPlaylist/ScheduledTasks/GeneratePlaylist.cs @@ -12,6 +12,7 @@ using System.Threading; using System.Threading.Tasks; using Jellyfin.Data.Entities; using Jellyfin.Data.Enums; +using MediaBrowser.Model.Entities; using MediaBrowser.Controller; using MediaBrowser.Controller.Entities; using MediaBrowser.Controller.Library; @@ -93,9 +94,12 @@ namespace Jellyfin.Plugin.SmartPlaylist.ScheduledTasks { } private SmartPlaylistId CreateNewPlaylist(string name, UserId userId) { + _logger.LogDebug("Creating playlist '{0}'", name); var req = new PlaylistCreationRequest { Name = name, UserId = userId, + Users = [new PlaylistUserPermissions(userId)], + Public = false, }; var playlistGuid = Guid.Parse(_playlistManager.CreatePlaylist(req).Result.Id); return playlistGuid;