mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-18 06:53:07 +03:00
combined usermanager and userdata manager
This commit is contained in:
@@ -29,6 +29,12 @@ namespace MediaBrowser.Api.Playback
|
||||
/// <value>The application paths.</value>
|
||||
protected IServerApplicationPaths ApplicationPaths { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the user manager.
|
||||
/// </summary>
|
||||
/// <value>The user manager.</value>
|
||||
protected IUserManager UserManager { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the server kernel.
|
||||
/// </summary>
|
||||
@@ -42,9 +48,11 @@ namespace MediaBrowser.Api.Playback
|
||||
/// Initializes a new instance of the <see cref="BaseStreamingService" /> class.
|
||||
/// </summary>
|
||||
/// <param name="appPaths">The app paths.</param>
|
||||
protected BaseStreamingService(IServerApplicationPaths appPaths)
|
||||
/// <param name="userManager">The user manager.</param>
|
||||
protected BaseStreamingService(IServerApplicationPaths appPaths, IUserManager userManager)
|
||||
{
|
||||
ApplicationPaths = appPaths;
|
||||
UserManager = userManager;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -606,7 +614,7 @@ namespace MediaBrowser.Api.Playback
|
||||
/// <returns>StreamState.</returns>
|
||||
protected StreamState GetState(StreamRequest request)
|
||||
{
|
||||
var item = DtoBuilder.GetItemByClientId(request.Id);
|
||||
var item = DtoBuilder.GetItemByClientId(request.Id, UserManager);
|
||||
|
||||
var media = (IHasMediaStreams)item;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user