mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-23 17:24:46 +03:00
reduce scanning overhead a bit
This commit is contained in:
@@ -664,22 +664,6 @@ namespace MediaBrowser.Controller.Dto
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the library update info.
|
||||
/// </summary>
|
||||
/// <param name="changeEvent">The <see cref="ChildrenChangedEventArgs" /> instance containing the event data.</param>
|
||||
/// <returns>LibraryUpdateInfo.</returns>
|
||||
public static LibraryUpdateInfo GetLibraryUpdateInfo(ChildrenChangedEventArgs changeEvent)
|
||||
{
|
||||
return new LibraryUpdateInfo
|
||||
{
|
||||
Folder = GetBaseItemInfo(changeEvent.Folder),
|
||||
ItemsAdded = changeEvent.ItemsAdded.Select(GetBaseItemInfo),
|
||||
ItemsRemoved = changeEvent.ItemsRemoved.Select(i => i.Id),
|
||||
ItemsUpdated = changeEvent.ItemsUpdated.Select(i => i.Id)
|
||||
};
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Converts a UserItemData to a DTOUserItemData
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user