mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-15 18:08:53 -07:00
update cinema mode on/off setting
This commit is contained in:
parent
252dde1722
commit
b28be7e986
@ -42,6 +42,11 @@ namespace MediaBrowser.Model.ApiClient
|
|||||||
existing.DateLastAccessed = server.DateLastAccessed;
|
existing.DateLastAccessed = server.DateLastAccessed;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (server.DateLastLocalConnection > existing.DateLastLocalConnection)
|
||||||
|
{
|
||||||
|
existing.DateLastLocalConnection = server.DateLastLocalConnection;
|
||||||
|
}
|
||||||
|
|
||||||
existing.UserLinkType = server.UserLinkType;
|
existing.UserLinkType = server.UserLinkType;
|
||||||
|
|
||||||
if (!string.IsNullOrEmpty(server.AccessToken))
|
if (!string.IsNullOrEmpty(server.AccessToken))
|
||||||
|
@ -19,6 +19,7 @@ namespace MediaBrowser.Model.ApiClient
|
|||||||
public String AccessToken { get; set; }
|
public String AccessToken { get; set; }
|
||||||
public List<WakeOnLanInfo> WakeOnLanInfos { get; set; }
|
public List<WakeOnLanInfo> WakeOnLanInfos { get; set; }
|
||||||
public DateTime DateLastAccessed { get; set; }
|
public DateTime DateLastAccessed { get; set; }
|
||||||
|
public DateTime DateLastLocalConnection { get; set; }
|
||||||
public String ExchangeToken { get; set; }
|
public String ExchangeToken { get; set; }
|
||||||
public UserLinkType? UserLinkType { get; set; }
|
public UserLinkType? UserLinkType { get; set; }
|
||||||
public ConnectionMode? LastConnectionMode { get; set; }
|
public ConnectionMode? LastConnectionMode { get; set; }
|
||||||
|
@ -554,6 +554,12 @@ namespace MediaBrowser.Model.Dto
|
|||||||
/// <value>The type of the collection.</value>
|
/// <value>The type of the collection.</value>
|
||||||
public string CollectionType { get; set; }
|
public string CollectionType { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or sets the type of the original collection.
|
||||||
|
/// </summary>
|
||||||
|
/// <value>The type of the original collection.</value>
|
||||||
|
public string OriginalCollectionType { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the display order.
|
/// Gets or sets the display order.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -356,6 +356,8 @@ namespace MediaBrowser.Server.Implementations.Dto
|
|||||||
var collectionFolder = item as ICollectionFolder;
|
var collectionFolder = item as ICollectionFolder;
|
||||||
if (collectionFolder != null)
|
if (collectionFolder != null)
|
||||||
{
|
{
|
||||||
|
dto.OriginalCollectionType = collectionFolder.CollectionType;
|
||||||
|
|
||||||
dto.CollectionType = user == null ?
|
dto.CollectionType = user == null ?
|
||||||
collectionFolder.CollectionType :
|
collectionFolder.CollectionType :
|
||||||
collectionFolder.GetViewType(user);
|
collectionFolder.GetViewType(user);
|
||||||
|
Loading…
Reference in New Issue
Block a user