mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-04 06:48:35 +01:00
Post GPL cleanup
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
using System;
|
||||
|
||||
|
||||
namespace MediaBrowser.Controller.Session
|
||||
{
|
||||
public class AuthenticationRequest
|
||||
@@ -9,7 +8,6 @@ namespace MediaBrowser.Controller.Session
|
||||
public Guid UserId { get; set; }
|
||||
public string Password { get; set; }
|
||||
public string PasswordSha1 { get; set; }
|
||||
public string PasswordMd5 { get; set; }
|
||||
public string App { get; set; }
|
||||
public string AppVersion { get; set; }
|
||||
public string DeviceId { get; set; }
|
||||
|
||||
@@ -5,7 +5,6 @@ using MediaBrowser.Controller.Security;
|
||||
using MediaBrowser.Model.Dto;
|
||||
using MediaBrowser.Model.Events;
|
||||
using MediaBrowser.Model.Session;
|
||||
using MediaBrowser.Model.Users;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading;
|
||||
|
||||
@@ -22,9 +22,9 @@ namespace MediaBrowser.Controller.Session
|
||||
_sessionManager = sessionManager;
|
||||
_logger = logger;
|
||||
|
||||
AdditionalUsers = new SessionUserInfo[] { };
|
||||
AdditionalUsers = Array.Empty<SessionUserInfo>();
|
||||
PlayState = new PlayerStateInfo();
|
||||
SessionControllers = new ISessionController[] { };
|
||||
SessionControllers = Array.Empty<ISessionController>();
|
||||
}
|
||||
|
||||
public PlayerStateInfo PlayState { get; set; }
|
||||
@@ -49,7 +49,7 @@ namespace MediaBrowser.Controller.Session
|
||||
{
|
||||
if (Capabilities == null)
|
||||
{
|
||||
return new string[] {};
|
||||
return Array.Empty<string>();
|
||||
}
|
||||
return Capabilities.PlayableMediaTypes;
|
||||
}
|
||||
@@ -363,7 +363,7 @@ namespace MediaBrowser.Controller.Session
|
||||
StopAutomaticProgress();
|
||||
|
||||
var controllers = SessionControllers.ToList();
|
||||
SessionControllers = new ISessionController[] { };
|
||||
SessionControllers = Array.Empty<ISessionController>();
|
||||
|
||||
foreach (var controller in controllers)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user