mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-06 05:43:03 +02:00
Merge pull request #3435 from crobibero/revert-missing-fields
revert missing session fields
This commit is contained in:
commit
57caa9fdba
|
@ -502,7 +502,8 @@ namespace Emby.Server.Implementations.Session
|
||||||
Client = appName,
|
Client = appName,
|
||||||
DeviceId = deviceId,
|
DeviceId = deviceId,
|
||||||
ApplicationVersion = appVersion,
|
ApplicationVersion = appVersion,
|
||||||
Id = key.GetMD5().ToString("N", CultureInfo.InvariantCulture)
|
Id = key.GetMD5().ToString("N", CultureInfo.InvariantCulture),
|
||||||
|
ServerId = _appHost.SystemId
|
||||||
};
|
};
|
||||||
|
|
||||||
var username = user?.Username;
|
var username = user?.Username;
|
||||||
|
|
|
@ -108,6 +108,12 @@ namespace MediaBrowser.Controller.Session
|
||||||
/// <value>The name of the device.</value>
|
/// <value>The name of the device.</value>
|
||||||
public string DeviceName { get; set; }
|
public string DeviceName { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or sets the type of the device.
|
||||||
|
/// </summary>
|
||||||
|
/// <value>The type of the device.</value>
|
||||||
|
public string DeviceType { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the now playing item.
|
/// Gets or sets the now playing item.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -215,8 +221,17 @@ namespace MediaBrowser.Controller.Session
|
||||||
|
|
||||||
public string PlaylistItemId { get; set; }
|
public string PlaylistItemId { get; set; }
|
||||||
|
|
||||||
|
public string ServerId { get; set; }
|
||||||
|
|
||||||
public string UserPrimaryImageTag { get; set; }
|
public string UserPrimaryImageTag { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or sets the supported commands.
|
||||||
|
/// </summary>
|
||||||
|
/// <value>The supported commands.</value>
|
||||||
|
public string[] SupportedCommands
|
||||||
|
=> Capabilities == null ? Array.Empty<string>() : Capabilities.SupportedCommands;
|
||||||
|
|
||||||
public Tuple<ISessionController, bool> EnsureController<T>(Func<SessionInfo, ISessionController> factory)
|
public Tuple<ISessionController, bool> EnsureController<T>(Func<SessionInfo, ISessionController> factory)
|
||||||
{
|
{
|
||||||
var controllers = SessionControllers.ToList();
|
var controllers = SessionControllers.ToList();
|
||||||
|
|
Loading…
Reference in a new issue