fix!: don't share playlists with other users.
This commit is contained in:
parent
eb7ab00ea2
commit
7ce5f673e1
1 changed files with 4 additions and 0 deletions
|
@ -12,6 +12,7 @@ using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using Jellyfin.Data.Entities;
|
using Jellyfin.Data.Entities;
|
||||||
using Jellyfin.Data.Enums;
|
using Jellyfin.Data.Enums;
|
||||||
|
using MediaBrowser.Model.Entities;
|
||||||
using MediaBrowser.Controller;
|
using MediaBrowser.Controller;
|
||||||
using MediaBrowser.Controller.Entities;
|
using MediaBrowser.Controller.Entities;
|
||||||
using MediaBrowser.Controller.Library;
|
using MediaBrowser.Controller.Library;
|
||||||
|
@ -93,9 +94,12 @@ namespace Jellyfin.Plugin.SmartPlaylist.ScheduledTasks {
|
||||||
}
|
}
|
||||||
|
|
||||||
private SmartPlaylistId CreateNewPlaylist(string name, UserId userId) {
|
private SmartPlaylistId CreateNewPlaylist(string name, UserId userId) {
|
||||||
|
_logger.LogDebug("Creating playlist '{0}'", name);
|
||||||
var req = new PlaylistCreationRequest {
|
var req = new PlaylistCreationRequest {
|
||||||
Name = name,
|
Name = name,
|
||||||
UserId = userId,
|
UserId = userId,
|
||||||
|
Users = [new PlaylistUserPermissions(userId)],
|
||||||
|
Public = false,
|
||||||
};
|
};
|
||||||
var playlistGuid = Guid.Parse(_playlistManager.CreatePlaylist(req).Result.Id);
|
var playlistGuid = Guid.Parse(_playlistManager.CreatePlaylist(req).Result.Id);
|
||||||
return playlistGuid;
|
return playlistGuid;
|
||||||
|
|
Loading…
Reference in a new issue