Interface IProviderManager
Interface IProviderManager
Assembly: MediaBrowser.Controller.dll
public interface IProviderManager
Properties
Declaration
IImageProvider[] ImageProviders { get; }
Property Value
Declaration
bool IsProcessingRefreshQueue { get; }
Property Value
Type |
Description |
System.Boolean |
|
Methods
Declaration
void CacheImage(BaseItem item, ItemImageInfo image, LibraryOptions libraryOptions, IDirectoryService directoryService)
Parameters
Declaration
void CacheImages(BaseItem item)
Parameters
Declaration
void DeleteCachedImages(BaseItem item, ItemImageInfo[] images, LibraryOptions libraryOptions, IDirectoryService directoryService)
Parameters
Declaration
void DequeueRefresh(long itemId)
Parameters
Type |
Name |
Description |
System.Int64 |
itemId |
|
Declaration
Task<RemoteSearchResult[]> GetAllEpisodes(Series series, LibraryOptions libraryOptions, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
Series |
series |
|
LibraryOptions |
libraryOptions |
|
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Gets all metadata plugins.
Declaration
MetadataPluginSummary[] GetAllMetadataPlugins()
Returns
Declaration
Task<IEnumerable<RemoteImageInfo>> GetAvailableRemoteImages(BaseItem item, LibraryOptions libraryOptions, RemoteImageQuery query, IDirectoryService directoryService, CancellationToken cancellationToken)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<RemoteImageInfo>> |
|
Gets the available remote images.
Declaration
Task<IEnumerable<RemoteImageInfo>> GetAvailableRemoteImages(BaseItem item, LibraryOptions libraryOptions, RemoteImageQuery query, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
BaseItem |
item |
The item.
|
LibraryOptions |
libraryOptions |
The library options.
|
RemoteImageQuery |
query |
The query.
|
System.Threading.CancellationToken |
cancellationToken |
The cancellation token.
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<RemoteImageInfo>> |
|
Declaration
IMetadataProvider[] GetEnabledMetadataProviders(BaseItem item, LibraryOptions libraryOptions)
Parameters
Returns
GetExternalIdInfos(IHasProviderIds)
Gets the external identifier infos.
Declaration
IEnumerable<ExternalIdInfo> GetExternalIdInfos(IHasProviderIds item)
Parameters
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<ExternalIdInfo> |
|
GetExternalUrls(BaseItem)
Declaration
IEnumerable<ExternalUrl> GetExternalUrls(BaseItem item)
Parameters
Type |
Name |
Description |
BaseItem |
item |
The item.
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<ExternalUrl> |
|
Declaration
LibraryOptionsResult GetLibraryOptionsInfo(string contentType)
Parameters
Type |
Name |
Description |
System.String |
contentType |
|
Returns
Declaration
double? GetRefreshProgress(long id)
Parameters
Type |
Name |
Description |
System.Int64 |
id |
|
Returns
Type |
Description |
System.Nullable<System.Double> |
|
Declaration
List<Tuple<long, MetadataRefreshOptions>> GetRefreshQueue()
Returns
Gets the image providers.
Declaration
IEnumerable<ImageProviderInfo> GetRemoteImageProviderInfo(BaseItem item, LibraryOptions libraryOptions)
Parameters
Returns
Declaration
Task<IEnumerable<RemoteSearchResult>> GetRemoteSearchResults<TItemType, TLookupType>(RemoteSearchQuery<TLookupType> searchInfo, BaseItem referenceItem, CancellationToken cancellationToken)
where TItemType : BaseItem, new()
where TLookupType : ItemLookupInfo
Parameters
Type |
Name |
Description |
RemoteSearchQuery<TLookupType> |
searchInfo |
|
BaseItem |
referenceItem |
|
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<RemoteSearchResult>> |
|
Type Parameters
Name |
Description |
TItemType |
|
TLookupType |
|
Gets the remote search results.
Declaration
Task<IEnumerable<RemoteSearchResult>> GetRemoteSearchResults<TItemType, TLookupType>(RemoteSearchQuery<TLookupType> searchInfo, CancellationToken cancellationToken)
where TItemType : BaseItem, new()
where TLookupType : ItemLookupInfo
Parameters
Type |
Name |
Description |
RemoteSearchQuery<TLookupType> |
searchInfo |
The search information.
|
System.Threading.CancellationToken |
cancellationToken |
The cancellation token.
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<RemoteSearchResult>> |
|
Type Parameters
Name |
Description |
TItemType |
The type of the t item type.
|
TLookupType |
The type of the t lookup type.
|
Declaration
Task<HttpResponseInfo> GetSearchImage(ReadOnlyMemory<char> providerName, string url, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
System.ReadOnlyMemory<System.Char> |
providerName |
Name of the provider.
|
System.String |
url |
The URL.
|
System.Threading.CancellationToken |
cancellationToken |
The cancellation token.
|
Returns
Type |
Description |
System.Threading.Tasks.Task<HttpResponseInfo> |
Task{HttpResponseInfo}.
|
Declaration
bool IsUniquelyIdentifiableProviderId(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
|
Returns
Type |
Description |
System.Boolean |
|
Declaration
bool IsUniquelyIdentifiableProviderId(string name, BaseItem item)
Parameters
Type |
Name |
Description |
System.String |
name |
|
BaseItem |
item |
|
Returns
Type |
Description |
System.Boolean |
|
Declaration
string NormalizeNameForMetadataSearch(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
|
Returns
Type |
Description |
System.String |
|
Declaration
void OnRefreshComplete(BaseItem item, BaseItem[] collectionFolders)
Parameters
Declaration
void OnRefreshProgress(BaseItem item, double progress, BaseItem[] collectionFolders)
Parameters
Type |
Name |
Description |
BaseItem |
item |
|
System.Double |
progress |
|
BaseItem[] |
collectionFolders |
|
Declaration
void OnRefreshStart(BaseItem item, BaseItem[] collectionFolders)
Parameters
Declaration
void QueueRefresh(long itemId, MetadataRefreshOptions options, RefreshPriority priority)
Parameters
Declaration
void QueueRefresh(long itemId, MetadataRefreshOptions options, RefreshPriority priority, bool dequeueIfAlreadyQueued)
Parameters
Declaration
Task RefreshFullItem(BaseItem item, MetadataRefreshOptions options, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
BaseItem |
item |
The item.
|
MetadataRefreshOptions |
options |
The options.
|
System.Threading.CancellationToken |
cancellationToken |
The cancellation token.
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
Task.
|
Declaration
Task<ItemUpdateType> RefreshSingleItem(BaseItem item, MetadataRefreshOptions options, BaseItem[] collectionFolders, LibraryOptions libraryOptions, CancellationToken cancellationToken)
Parameters
Returns
Declaration
Task SaveImage(BaseItem item, LibraryOptions libraryOptions, Stream source, ReadOnlyMemory<char> mimeType, ImageType type, int? imageIndex, long[] generatedFromItemIds, IDirectoryService directoryService, bool updateImageCache, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
BaseItem |
item |
|
LibraryOptions |
libraryOptions |
|
System.IO.Stream |
source |
|
System.ReadOnlyMemory<System.Char> |
mimeType |
|
ImageType |
type |
|
System.Nullable<System.Int32> |
imageIndex |
|
System.Int64[] |
generatedFromItemIds |
|
IDirectoryService |
directoryService |
|
System.Boolean |
updateImageCache |
|
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
Declaration
Task SaveImage(BaseItem item, LibraryOptions libraryOptions, string url, ImageType type, int? imageIndex, long[] generatedFromItemIds, IDirectoryService directoryService, bool updateImageCache, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
BaseItem |
item |
|
LibraryOptions |
libraryOptions |
|
System.String |
url |
|
ImageType |
type |
|
System.Nullable<System.Int32> |
imageIndex |
|
System.Int64[] |
generatedFromItemIds |
|
IDirectoryService |
directoryService |
|
System.Boolean |
updateImageCache |
|
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
Declaration
Task SaveImage(BaseItem item, LibraryOptions libraryOptions, string source, ReadOnlyMemory<char> mimeType, ImageType type, int? imageIndex, bool? saveLocallyWithMedia, long[] generatedFromItemIds, IDirectoryService directoryService, bool updateImageCache, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
BaseItem |
item |
|
LibraryOptions |
libraryOptions |
|
System.String |
source |
|
System.ReadOnlyMemory<System.Char> |
mimeType |
|
ImageType |
type |
|
System.Nullable<System.Int32> |
imageIndex |
|
System.Nullable<System.Boolean> |
saveLocallyWithMedia |
|
System.Int64[] |
generatedFromItemIds |
|
IDirectoryService |
directoryService |
|
System.Boolean |
updateImageCache |
|
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
Task.
|
Declaration
Task SaveMetadata(BaseItem item, ItemUpdateType updateType)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task |
Task.
|
Declaration
Task SaveMetadata(BaseItem item, ItemUpdateType updateType, IEnumerable<string> savers)
Parameters
Type |
Name |
Description |
BaseItem |
item |
|
ItemUpdateType |
updateType |
|
System.Collections.Generic.IEnumerable<System.String> |
savers |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
Declaration
Task SaveMetadata(BaseItem item, LibraryOptions libraryOptions, ItemUpdateType updateType)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
Declaration
Task WaitForRefreshQueue(IProgress<double> progress, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
System.IProgress<System.Double> |
progress |
|
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
Events
Declaration
event EventHandler<GenericEventArgs<RefreshProgressInfo>> RefreshCompleted
Event Type
Declaration
event EventHandler<GenericEventArgs<RefreshProgressInfo>> RefreshProgress
Event Type
Declaration
event EventHandler<GenericEventArgs<RefreshProgressInfo>> RefreshStarted
Event Type
Extension Methods