mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-25 11:34:43 +01:00
add search methods to remote metadata providers
This commit is contained in:
@@ -912,32 +912,6 @@ namespace MediaBrowser.Controller.Entities
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Determine if we have changed vs the passed in copy
|
||||
/// </summary>
|
||||
/// <param name="copy">The copy.</param>
|
||||
/// <returns><c>true</c> if the specified copy has changed; otherwise, <c>false</c>.</returns>
|
||||
/// <exception cref="System.ArgumentNullException"></exception>
|
||||
public virtual bool HasChanged(BaseItem copy)
|
||||
{
|
||||
if (copy == null)
|
||||
{
|
||||
throw new ArgumentNullException();
|
||||
}
|
||||
if (IsInMixedFolder != copy.IsInMixedFolder)
|
||||
{
|
||||
Logger.Debug(Name + " changed due to different value for IsInMixedFolder.");
|
||||
return true;
|
||||
}
|
||||
|
||||
var changed = copy.DateModified != DateModified;
|
||||
if (changed)
|
||||
{
|
||||
Logger.Debug(Name + " changed - original creation: " + DateCreated + " new creation: " + copy.DateCreated + " original modified: " + DateModified + " new modified: " + copy.DateModified);
|
||||
}
|
||||
return changed;
|
||||
}
|
||||
|
||||
public virtual string GetClientTypeName()
|
||||
{
|
||||
return GetType().Name;
|
||||
|
||||
@@ -181,8 +181,6 @@ namespace MediaBrowser.Controller.Entities
|
||||
|
||||
item.Parent = null;
|
||||
|
||||
LibraryManager.ReportItemRemoved(item);
|
||||
|
||||
return ItemRepository.SaveChildren(Id, ActualChildren.Select(i => i.Id).ToList(), cancellationToken);
|
||||
}
|
||||
|
||||
@@ -220,7 +218,6 @@ namespace MediaBrowser.Controller.Entities
|
||||
{LocalizedStrings.Instance.GetString("GenreDispPref")},
|
||||
{LocalizedStrings.Instance.GetString("DirectorDispPref")},
|
||||
{LocalizedStrings.Instance.GetString("YearDispPref")},
|
||||
//{LocalizedStrings.Instance.GetString("OfficialRatingDispPref"), null},
|
||||
{LocalizedStrings.Instance.GetString("StudioDispPref")}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user