mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-21 09:34:44 +01:00
fix DeviceDiscovery
This commit is contained in:
@@ -1186,23 +1186,6 @@ namespace MediaBrowser.Controller.Entities
|
||||
return false;
|
||||
}
|
||||
|
||||
private string _userDataKey;
|
||||
/// <summary>
|
||||
/// Gets the user data key.
|
||||
/// </summary>
|
||||
/// <returns>System.String.</returns>
|
||||
public string GetUserDataKey()
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(_userDataKey))
|
||||
{
|
||||
var key = GetUserDataKeys().First();
|
||||
_userDataKey = key;
|
||||
return key;
|
||||
}
|
||||
|
||||
return _userDataKey;
|
||||
}
|
||||
|
||||
public virtual List<string> GetUserDataKeys()
|
||||
{
|
||||
var list = new List<string>();
|
||||
@@ -1229,7 +1212,6 @@ namespace MediaBrowser.Controller.Entities
|
||||
public void AfterMetadataRefresh()
|
||||
{
|
||||
_sortName = null;
|
||||
_userDataKey = null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -2074,7 +2056,6 @@ namespace MediaBrowser.Controller.Entities
|
||||
/// </summary>
|
||||
public virtual bool BeforeMetadataRefresh()
|
||||
{
|
||||
_userDataKey = null;
|
||||
_sortName = null;
|
||||
|
||||
var hasChanges = false;
|
||||
|
||||
@@ -8,12 +8,6 @@ namespace MediaBrowser.Controller.Entities
|
||||
/// </summary>
|
||||
public interface IHasUserData : IHasId
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the user data key.
|
||||
/// </summary>
|
||||
/// <returns>System.String.</returns>
|
||||
string GetUserDataKey();
|
||||
|
||||
List<string> GetUserDataKeys();
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user