updated tvdb search

This commit is contained in:
Luke Pulverenti
2015-01-27 01:50:40 -05:00
parent f5919990c9
commit b3127f19b5
15 changed files with 175 additions and 55 deletions
+11 -3
View File
@@ -894,12 +894,14 @@ namespace MediaBrowser.Controller.Entities
/// <returns>System.String.</returns>
public string GetUserDataKey()
{
if (!string.IsNullOrWhiteSpace(_userDataKey))
if (string.IsNullOrWhiteSpace(_userDataKey))
{
return _userDataKey;
var key = CreateUserDataKey();
_userDataKey = key;
return key;
}
return _userDataKey ?? (_userDataKey = CreateUserDataKey());
return _userDataKey;
}
protected virtual string CreateUserDataKey()
@@ -914,6 +916,12 @@ namespace MediaBrowser.Controller.Entities
return current.IsInMixedFolder == newItem.IsInMixedFolder;
}
public void AfterMetadataRefresh()
{
_sortName = null;
_userDataKey = null;
}
/// <summary>
/// Gets the preferred metadata language.
/// </summary>