Interface ILibraryManager
Interface ILibraryManager
Assembly: MediaBrowser.Controller.dll
public interface ILibraryManager
Properties
Declaration
bool IsScanRunning { get; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
AggregateFolder RootFolder { get; }
Property Value
Declaration
long RootFolderId { get; }
Property Value
Type |
Description |
System.Int64 |
|
Methods
Declaration
void AddDatabase(ILibraryDatabase db)
Parameters
Declaration
void AddExternalSubtitleStreams(List<MediaStream> streams, string mediaPath, bool isAudio, FileSystemMetadata[] files)
Parameters
Type |
Name |
Description |
System.Collections.Generic.List<MediaStream> |
streams |
|
System.String |
mediaPath |
|
System.Boolean |
isAudio |
|
FileSystemMetadata[] |
files |
|
Declaration
Task<ListItem[]> AddListItems(BaseItem list, ListItem[] items, bool skipDuplicates)
Parameters
Type |
Name |
Description |
BaseItem |
list |
|
ListItem[] |
items |
|
System.Boolean |
skipDuplicates |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<ListItem[]> |
|
Declaration
void AddMediaPaths(CollectionFolder item, MediaPathInfo[] pathInfos, bool refreshLibrary)
Parameters
AddParts(IEnumerable<IItemResolver>, IEnumerable<IIntroProvider>, IEnumerable<ILibraryPostScanTask>, IEnumerable<ILazyImageProvider>)
Declaration
void AddParts(IEnumerable<IItemResolver> resolvers, IEnumerable<IIntroProvider> introProviders, IEnumerable<ILibraryPostScanTask> postscanTasks, IEnumerable<ILazyImageProvider> lazyImageProviders)
Parameters
Declaration
CollectionFolder AddVirtualFolder(string name, LibraryOptions options, bool refreshLibrary)
Parameters
Type |
Name |
Description |
System.String |
name |
|
LibraryOptions |
options |
|
System.Boolean |
refreshLibrary |
|
Returns
Declaration
CollectionFolder AddVirtualFolder(string name, string sortName, LibraryOptions options, bool refreshLibrary)
Parameters
Type |
Name |
Description |
System.String |
name |
|
System.String |
sortName |
|
LibraryOptions |
options |
|
System.Boolean |
refreshLibrary |
|
Returns
Converts the image to local.
Declaration
Task<ItemImageInfo> ConvertImageToLocal(BaseItem item, ItemImageInfo image, int imageIndex, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
BaseItem |
item |
|
ItemImageInfo |
image |
|
System.Int32 |
imageIndex |
|
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Declaration
void CreateItem(BaseItem item, BaseItem parent)
Parameters
Declaration
void CreateItem(BaseItem item, BaseItem parent, BaseItem[] collectionFolders)
Parameters
Declaration
void CreateItems(List<BaseItem> items, BaseItem parent, MetadataRefreshOptions metadataRefreshOptions, BaseItem[] collectionFolders, bool triggerItemAdded, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
System.Collections.Generic.List<BaseItem> |
items |
|
BaseItem |
parent |
|
MetadataRefreshOptions |
metadataRefreshOptions |
|
BaseItem[] |
collectionFolders |
|
System.Boolean |
triggerItemAdded |
|
System.Threading.CancellationToken |
cancellationToken |
|
Declaration
void DeleteItem(BaseItem item, DeleteOptions options)
Parameters
Declaration
void DeleteItem(BaseItem item, DeleteOptions options, BaseItem parent, bool notifyParentItem)
Parameters
Declaration
void DeleteItem(BaseItem item, DeleteOptions options, bool notifyParentItem)
Parameters
Declaration
void DeleteItems(long[] ids)
Parameters
Type |
Name |
Description |
System.Int64[] |
ids |
|
Declaration
bool FileNameMatchesMetadataName(string filename, string metadataName)
Parameters
Type |
Name |
Description |
System.String |
filename |
|
System.String |
metadataName |
|
Returns
Type |
Description |
System.Boolean |
|
Fills the missing episode numbers from path.
Declaration
bool FillMissingEpisodeNumbersFromPath(Episode episode, bool forceRefresh)
Parameters
Type |
Name |
Description |
Episode |
episode |
|
System.Boolean |
forceRefresh |
|
Returns
Type |
Description |
System.Boolean |
|
FilterItemsToIdsForUser(BaseItem[], User, IDataContext)
Declaration
long[] FilterItemsToIdsForUser(BaseItem[] items, User user, IDataContext dataContext)
Parameters
Returns
Type |
Description |
System.Int64[] |
|
Declaration
BaseItem FindByPath(string path, bool? isFolder)
Parameters
Type |
Name |
Description |
System.String |
path |
The path.
|
System.Nullable<System.Boolean> |
isFolder |
The is folder.
|
Returns
Declaration
long FindIdByPath(string path, bool? isFolder)
Parameters
Type |
Name |
Description |
System.String |
path |
|
System.Nullable<System.Boolean> |
isFolder |
|
Returns
Type |
Description |
System.Int64 |
|
Declaration
List<BaseItem> GetAllArtists(BaseItem item)
Parameters
Returns
Type |
Description |
System.Collections.Generic.List<BaseItem> |
|
Declaration
QueryResult<Tuple<BaseItem, ItemCounts>> GetAllGenres(InternalItemsQuery query)
Parameters
Returns
Declaration
List<string> GetAllIntroFiles()
Returns
Type |
Description |
System.Collections.Generic.List<System.String> |
IEnumerable{System.String}.
|
Declaration
QueryResult<Tuple<BaseItem, ItemCounts>> GetArtists(InternalItemsQuery query)
Parameters
Returns
Declaration
QueryResult<Tuple<BaseItem, ItemCounts>> GetArtists(InternalItemsQuery query, ItemLinkType[] artistTypes)
Parameters
Returns
Declaration
QueryResult<string> GetAudioCodecs(InternalItemsQuery query)
Parameters
Returns
Declaration
QueryResult<string> GetAudioLayouts(InternalItemsQuery query)
Parameters
Returns
Declaration
string GetCachedImage(BaseItem item, string originalImagePath)
Parameters
Type |
Name |
Description |
BaseItem |
item |
|
System.String |
originalImagePath |
|
Returns
Type |
Description |
System.String |
|
Gets the collection folders.
Declaration
Folder[] GetCollectionFolders(BaseItem item)
Parameters
Type |
Name |
Description |
BaseItem |
item |
The item.
|
Returns
GetCollectionFolders(BaseItem, IDataContext)
Declaration
Folder[] GetCollectionFolders(BaseItem item, IDataContext dataContext)
Parameters
Returns
GetExtendedVideoTypes(InternalItemsQuery)
Declaration
QueryResult<ExtendedVideoTypes> GetExtendedVideoTypes(InternalItemsQuery query)
Parameters
Returns
GetExternalSubtitleFiles(Int64)
Declaration
List<string> GetExternalSubtitleFiles(long itemId)
Parameters
Type |
Name |
Description |
System.Int64 |
itemId |
|
Returns
Type |
Description |
System.Collections.Generic.List<System.String> |
|
Declaration
ExtraType[] GetExtraTypes(InternalItemsQuery query)
Parameters
Returns
Declaration
QueryResult<Tuple<BaseItem, ItemCounts>> GetGameGenres(InternalItemsQuery query)
Parameters
Returns
Declaration
QueryResult<Tuple<BaseItem, ItemCounts>> GetGenres(InternalItemsQuery query)
Parameters
Returns
Declaration
Tuple<Guid, string> GetGuidAndPath(long itemId)
Parameters
Type |
Name |
Description |
System.Int64 |
itemId |
|
Returns
Type |
Description |
System.Tuple<System.Guid, System.String> |
|
Declaration
(long, Guid)[] GetIdGuidPairs(InternalItemsQuery query)
Parameters
Returns
Type |
Description |
System.ValueTuple<System.Int64, System.Guid>[] |
|
Declaration
ItemImageInfo GetImageInfo(long itemId, ImageType imageType, int index)
Parameters
Type |
Name |
Description |
System.Int64 |
itemId |
|
ImageType |
imageType |
|
System.Int32 |
index |
|
Returns
Declaration
LinkedItemInfo[] GetImportedCollections(long itemId)
Parameters
Type |
Name |
Description |
System.Int64 |
itemId |
|
Returns
Declaration
long GetInternalId(Guid id)
Parameters
Type |
Name |
Description |
System.Guid |
id |
|
Returns
Type |
Description |
System.Int64 |
|
Declaration
long GetInternalId(ReadOnlySpan<char> id)
Parameters
Type |
Name |
Description |
System.ReadOnlySpan<System.Char> |
id |
|
Returns
Type |
Description |
System.Int64 |
|
Declaration
long GetInternalId(string id)
Parameters
Type |
Name |
Description |
System.String |
id |
|
Returns
Type |
Description |
System.Int64 |
|
Declaration
long GetInternalId(string itemId, string mediaSourceId)
Parameters
Type |
Name |
Description |
System.String |
itemId |
|
System.String |
mediaSourceId |
|
Returns
Type |
Description |
System.Int64 |
|
Declaration
long[] GetInternalItemIds(InternalItemsQuery query)
Parameters
Returns
Type |
Description |
System.Int64[] |
|
GetInternalItemIds(InternalItemsQuery, IDataContext)
Declaration
long[] GetInternalItemIds(InternalItemsQuery query, IDataContext dataContext)
Parameters
Returns
Type |
Description |
System.Int64[] |
|
Declaration
Task<IEnumerable<Video>> GetIntros(BaseItem item, User user)
Parameters
Type |
Name |
Description |
BaseItem |
item |
The item.
|
User |
user |
The user.
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Video>> |
|
Declaration
BaseItem GetItemById(Guid id)
Parameters
Type |
Name |
Description |
System.Guid |
id |
The id.
|
Returns
Declaration
BaseItem GetItemById(long id)
Parameters
Type |
Name |
Description |
System.Int64 |
id |
|
Returns
GetItemById(Int64, IDataContext)
Declaration
BaseItem GetItemById(long id, IDataContext dataContext)
Parameters
Type |
Name |
Description |
System.Int64 |
id |
|
IDataContext |
dataContext |
|
Returns
Declaration
BaseItem GetItemById(string itemId, string mediaSourceId)
Parameters
Type |
Name |
Description |
System.String |
itemId |
|
System.String |
mediaSourceId |
|
Returns
Declaration
Guid[] GetItemIds(InternalItemsQuery query)
Parameters
Returns
Type |
Description |
System.Guid[] |
List<Guid>.
|
Declaration
List<(ItemLinkType, string, long)> GetItemLinks(long itemId, List<ItemLinkType> types)
Parameters
Type |
Name |
Description |
System.Int64 |
itemId |
|
System.Collections.Generic.List<ItemLinkType> |
types |
|
Returns
Type |
Description |
System.Collections.Generic.List<System.ValueTuple<ItemLinkType, System.String, System.Int64>> |
|
GetItemLinks(Int64, List<ItemLinkType>, IDataContext)
Declaration
List<(ItemLinkType, string, long)> GetItemLinks(long itemId, List<ItemLinkType> types, IDataContext dataContext)
Parameters
Returns
Type |
Description |
System.Collections.Generic.List<System.ValueTuple<ItemLinkType, System.String, System.Int64>> |
|
Declaration
BaseItem[] GetItemList(InternalItemsQuery query)
Parameters
Returns
Type |
Description |
BaseItem[] |
QueryResult<BaseItem>.
|
Declaration
BaseItem[] GetItemList(InternalItemsQuery query, bool obsoleteParam)
Parameters
Returns
Declaration
List<PersonInfo> GetItemPeople(BaseItem item)
Parameters
Returns
Type |
Description |
System.Collections.Generic.List<PersonInfo> |
|
Declaration
List<PersonInfo> GetItemPeople(InternalPeopleQuery query)
Parameters
Returns
Type |
Description |
System.Collections.Generic.List<PersonInfo> |
|
Declaration
QueryResult<BaseItem> GetItemsResult(InternalItemsQuery query)
Parameters
Returns
GetItemsResult(InternalItemsQuery, IDataContext)
Declaration
QueryResult<BaseItem> GetItemsResult(InternalItemsQuery query, IDataContext dataContext)
Parameters
Returns
Declaration
string[] GetItemTypes(InternalItemsQuery query)
Parameters
Returns
Type |
Description |
System.String[] |
|
Declaration
LibraryOptions GetLibraryOptions(BaseItem item)
Parameters
Returns
Declaration
LibraryOptions GetLibraryOptions(BaseItem item, BaseItem[] collectionFolders)
Parameters
Returns
GetLibraryOptions(BaseItem, BaseItem[], IDataContext)
Declaration
LibraryOptions GetLibraryOptions(BaseItem item, BaseItem[] collectionFolders, IDataContext dataContext)
Parameters
Returns
Declaration
QueryResult<Tuple<BaseItem, ItemCounts>> GetMusicAlbums(InternalItemsQuery query)
Parameters
Returns
Declaration
QueryResult<Tuple<BaseItem, ItemCounts>> GetMusicGenres(InternalItemsQuery query)
Parameters
Returns
GetNamedView(String, String, Boolean, IDataContext)
Declaration
Folder GetNamedView(string name, string viewType, bool createIfNotFound, IDataContext dataContext)
Parameters
Type |
Name |
Description |
System.String |
name |
|
System.String |
viewType |
|
System.Boolean |
createIfNotFound |
|
IDataContext |
dataContext |
|
Returns
Declaration
(string, long)[] GetNameIdPairs(InternalItemsQuery query)
Parameters
Returns
Type |
Description |
System.ValueTuple<System.String, System.Int64>[] |
|
Declaration
NamingOptions GetNamingOptions()
Returns
Gets the new item identifier.
Declaration
Guid GetNewItemId(string key, Type type)
Parameters
Type |
Name |
Description |
System.String |
key |
The key.
|
System.Type |
type |
The type.
|
Returns
Type |
Description |
System.Guid |
Guid.
|
Declaration
Guid GetNewItemIdFromName(string name, Type type)
Parameters
Type |
Name |
Description |
System.String |
name |
|
System.Type |
type |
|
Returns
Type |
Description |
System.Guid |
|
Declaration
string GetPathAfterNetworkSubstitution(ReadOnlySpan<char> path, LibraryOptions libraryOptions)
Parameters
Type |
Name |
Description |
System.ReadOnlySpan<System.Char> |
path |
|
LibraryOptions |
libraryOptions |
|
Returns
Type |
Description |
System.String |
|
Declaration
string[] GetPaths(InternalItemsQuery query)
Parameters
Returns
Type |
Description |
System.String[] |
|
Declaration
QueryResult<BaseItem> GetPeople(InternalItemsQuery query)
Parameters
Returns
Declaration
string[] GetPrefixes(BaseItem[] items)
Parameters
Returns
Type |
Description |
System.String[] |
|
Declaration
ProviderIdDictionary GetProviderIds(long itemId)
Parameters
Type |
Name |
Description |
System.Int64 |
itemId |
|
Returns
Gets the season number from path.
Declaration
int? GetSeasonNumberFromPath(ReadOnlySpan<char> path)
Parameters
Type |
Name |
Description |
System.ReadOnlySpan<System.Char> |
path |
The path.
|
Returns
Type |
Description |
System.Nullable<System.Int32> |
System.Nullable<System.Int32>.
|
Declaration
QueryResult<UserItemShareLevel?> GetShareLevels(InternalItemsQuery query)
Parameters
Returns
Declaration
QueryResult<string> GetStreamLanguages(InternalItemsQuery query, MediaStreamType streamType)
Parameters
Returns
Declaration
QueryResult<Tuple<BaseItem, ItemCounts>> GetStudios(InternalItemsQuery query)
Parameters
Returns
Declaration
QueryResult<string> GetSubtitleCodecs(InternalItemsQuery query)
Parameters
Returns
Declaration
List<string> GetSubviews(InternalItemsQuery query, string contentType)
Parameters
Returns
Type |
Description |
System.Collections.Generic.List<System.String> |
|
Declaration
long GetSyncTargetId(string reportedDeviceId, bool createIfNotFound)
Parameters
Type |
Name |
Description |
System.String |
reportedDeviceId |
|
System.Boolean |
createIfNotFound |
|
Returns
Type |
Description |
System.Int64 |
|
Declaration
QueryResult<Tuple<BaseItem, ItemCounts>> GetTags(InternalItemsQuery query)
Parameters
Returns
Declaration
Tuple<Type, ItemImageInfo> GetTypeAndImageInfo(long itemId, ImageType imageType, int index)
Parameters
Type |
Name |
Description |
System.Int64 |
itemId |
|
ImageType |
imageType |
|
System.Int32 |
index |
|
Returns
Gets the user root folder.
Declaration
Folder GetUserRootFolder()
Returns
Type |
Description |
Folder |
UserRootFolder.
|
Declaration
QueryResult<string> GetVideoCodecs(InternalItemsQuery query)
Parameters
Returns
Declaration
List<VirtualFolderInfo> GetVirtualFolders()
Returns
Declaration
List<VirtualFolderInfo> GetVirtualFolders(User user, bool includeRefreshState)
Parameters
Type |
Name |
Description |
User |
user |
|
System.Boolean |
includeRefreshState |
|
Returns
Declaration
bool IgnoreFile(FileSystemMetadata file, BaseItem parent, LibraryOptions libraryOptions)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
bool IsAlphaNumericallyEquivalent(string str1, string str2)
Parameters
Type |
Name |
Description |
System.String |
str1 |
|
System.String |
str2 |
|
Returns
Type |
Description |
System.Boolean |
|
Declaration
bool IsAudioFile(FileSystemMetadata file, LibraryOptions libraryOptions)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Determines whether [is audio file] [the specified path].
Declaration
bool IsAudioFile(ReadOnlySpan<char> path)
Parameters
Type |
Name |
Description |
System.ReadOnlySpan<System.Char> |
path |
The path.
|
Returns
Type |
Description |
System.Boolean |
true if [is audio file] [the specified path]; otherwise, false .
|
Declaration
bool IsAudioFile(ReadOnlySpan<char> path, LibraryOptions libraryOptions)
Parameters
Type |
Name |
Description |
System.ReadOnlySpan<System.Char> |
path |
|
LibraryOptions |
libraryOptions |
|
Returns
Type |
Description |
System.Boolean |
|
Declaration
bool IsLyricsFile(FileSystemMetadata file)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
bool IsMultiDiscAlbumFolder(string path)
Parameters
Type |
Name |
Description |
System.String |
path |
|
Returns
Type |
Description |
System.Boolean |
|
Declaration
bool IsSubtitleFile(string path)
Parameters
Type |
Name |
Description |
System.String |
path |
|
Returns
Type |
Description |
System.Boolean |
|
Declaration
bool IsTVSpecialsFolder(string path)
Parameters
Type |
Name |
Description |
System.String |
path |
|
Returns
Type |
Description |
System.Boolean |
|
Declaration
bool IsVideoFile(FileSystemMetadata file, LibraryOptions libraryOptions)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Determines whether [is video file] [the specified path].
Declaration
bool IsVideoFile(ReadOnlySpan<char> path)
Parameters
Type |
Name |
Description |
System.ReadOnlySpan<System.Char> |
path |
The path.
|
Returns
Type |
Description |
System.Boolean |
true if [is video file] [the specified path]; otherwise, false .
|
Declaration
bool IsVideoFile(ReadOnlySpan<char> path, LibraryOptions libraryOptions)
Parameters
Type |
Name |
Description |
System.ReadOnlySpan<System.Char> |
path |
|
LibraryOptions |
libraryOptions |
|
Returns
Type |
Description |
System.Boolean |
|
Declaration
void MakePrivate(BaseItem item, User user)
Parameters
Declaration
void MakePublic(BaseItem item, User user)
Parameters
Declaration
void MergeItems(BaseItem[] items)
Parameters
Declaration
Task MoveListItem(BaseItem list, long entryId, int newIndex)
Parameters
Type |
Name |
Description |
BaseItem |
list |
|
System.Int64 |
entryId |
|
System.Int32 |
newIndex |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
Declaration
ItemLookupInfo ParseName(ReadOnlySpan<char> name)
Parameters
Type |
Name |
Description |
System.ReadOnlySpan<System.Char> |
name |
The name.
|
Returns
Declaration
ItemLookupInfo ParseName(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
|
Returns
Declaration
Tuple<int?, int?, int?> ParseSxxExxEpisodeNumberSystem(string value)
Parameters
Type |
Name |
Description |
System.String |
value |
|
Returns
Type |
Description |
System.Tuple<System.Nullable<System.Int32>, System.Nullable<System.Int32>, System.Nullable<System.Int32>> |
|
Declaration
QueryResult<BaseItem> QueryItems(InternalItemsQuery query)
Parameters
Returns
Declaration
Declaration
Task<bool> RefreshThumbnailImages(Video item, MediaStream videoStream, LibraryOptions libraryOptions, MetadataRefreshOptions metadataRefreshOptions, List<ChapterInfo> chapters, bool extractImages, bool saveChapters, CancellationToken cancellationToken)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Boolean> |
|
RemoveListItemsByListItemEntryIds(BaseItem, Int64[])
Declaration
Task RemoveListItemsByListItemEntryIds(BaseItem list, long[] listItemIds)
Parameters
Type |
Name |
Description |
BaseItem |
list |
|
System.Int64[] |
listItemIds |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
Declaration
void RemoveMediaPath(long virtualFolderId, string path)
Parameters
Type |
Name |
Description |
System.Int64 |
virtualFolderId |
|
System.String |
path |
|
Declaration
void RemoveVirtualFolder(long id)
Parameters
Type |
Name |
Description |
System.Int64 |
id |
|
Declaration
void RemoveVirtualFolder(long id, bool refreshLibrary)
Parameters
Type |
Name |
Description |
System.Int64 |
id |
|
System.Boolean |
refreshLibrary |
|
Declaration
BaseItem ResolvePath(FileSystemMetadata fileInfo, Folder parent = null)
Parameters
Returns
Resolves a set of files into a list of BaseItem
Declaration
List<BaseItem> ResolvePaths(FileSystemMetadata[] files, IDirectoryService directoryService, Folder parent, LibraryOptions libraryOptions)
Parameters
Returns
Type |
Description |
System.Collections.Generic.List<BaseItem> |
|
Declaration
void SaveUserItemShares(UserItemShare[] shares)
Parameters
Declaration
void SetSortIndexNumbers(List<Tuple<long, int>> values)
Parameters
Type |
Name |
Description |
System.Collections.Generic.List<System.Tuple<System.Int64, System.Int32>> |
values |
|
Declaration
void SplitItems(BaseItem item)
Parameters
Declaration
string SubstitutePath(ReadOnlySpan<char> path, ReadOnlySpan<char> from, ReadOnlySpan<char> to)
Parameters
Type |
Name |
Description |
System.ReadOnlySpan<System.Char> |
path |
The path.
|
System.ReadOnlySpan<System.Char> |
from |
From.
|
System.ReadOnlySpan<System.Char> |
to |
To.
|
Returns
Type |
Description |
System.String |
System.String.
|
Declaration
void TriggerItemAdded(BaseItem item, BaseItem parent, BaseItem[] collectionFolders)
Parameters
Declaration
void UpdateImages(BaseItem item)
Parameters
Declaration
void UpdateItem(BaseItem item, BaseItem parent, ItemUpdateType updateReason)
Parameters
Declaration
void UpdateItem(BaseItem item, BaseItem parent, ItemUpdateType updateReason, MetadataRefreshOptions metadataRefreshOptions)
Parameters
Declaration
void UpdateItems(List<BaseItem> items, BaseItem parent, ItemUpdateType updateReason, MetadataRefreshOptions metadataRefreshOptions, CancellationToken cancellationToken)
Parameters
Declaration
void UpdateItems(List<BaseItem> items, BaseItem parent, ItemUpdateType updateReason, bool setDateLastSaved, bool saveMetadata, MetadataRefreshOptions metadataRefreshOptions, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
System.Collections.Generic.List<BaseItem> |
items |
|
BaseItem |
parent |
|
ItemUpdateType |
updateReason |
|
System.Boolean |
setDateLastSaved |
|
System.Boolean |
saveMetadata |
|
MetadataRefreshOptions |
metadataRefreshOptions |
|
System.Threading.CancellationToken |
cancellationToken |
|
Declaration
void UpdateListItems(BaseItem list, LinkedChild[] items)
Parameters
Declaration
void UpdateMediaPath(long virtualFolderId, MediaPathInfo path)
Parameters
Type |
Name |
Description |
System.Int64 |
virtualFolderId |
|
MediaPathInfo |
path |
|
Declaration
void UpdatePeople(BaseItem item, List<PersonInfo> people, bool isNewItem = false)
Parameters
Type |
Name |
Description |
BaseItem |
item |
|
System.Collections.Generic.List<PersonInfo> |
people |
|
System.Boolean |
isNewItem |
|
Reloads the root media folder
Declaration
Task ValidateMediaLibrary(IProgress<double> progress, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
System.IProgress<System.Double> |
progress |
The progress.
|
System.Threading.CancellationToken |
cancellationToken |
The cancellation token.
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
Task.
|
Validate and refresh the People sub-set of the IBN.
The items are stored in the db but not loaded into memory until actually requested by an operation.
Declaration
Task ValidatePeople(CancellationToken cancellationToken, IProgress<double> progress)
Parameters
Type |
Name |
Description |
System.Threading.CancellationToken |
cancellationToken |
The cancellation token.
|
System.IProgress<System.Double> |
progress |
The progress.
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
Task.
|
Events
Occurs when [item added].
Declaration
event EventHandler<ItemChangeEventArgs> ItemAdded
Event Type
Declaration
event EventHandler<ItemChangeEventArgs> ItemAdding
Event Type
Occurs when [item removed].
Declaration
event EventHandler<ItemChangeEventArgs> ItemRemoved
Event Type
Occurs when [item updated].
Declaration
event EventHandler<ItemChangeEventArgs> ItemUpdated
Event Type
Extension Methods