2020-08-22 19:56:24 +00:00
|
|
|
#pragma warning disable CS1591
|
|
|
|
|
2019-01-13 20:01:16 +00:00
|
|
|
using System.Threading;
|
2018-12-27 23:27:57 +00:00
|
|
|
using System.Threading.Tasks;
|
2019-01-13 19:25:32 +00:00
|
|
|
using MediaBrowser.Controller.Entities;
|
|
|
|
using MediaBrowser.Controller.Library;
|
2018-12-27 23:27:57 +00:00
|
|
|
|
|
|
|
namespace MediaBrowser.Controller.Providers
|
|
|
|
{
|
|
|
|
public interface ICustomMetadataProvider : IMetadataProvider
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
public interface ICustomMetadataProvider<TItemType> : IMetadataProvider<TItemType>, ICustomMetadataProvider
|
|
|
|
where TItemType : BaseItem
|
|
|
|
{
|
|
|
|
/// <summary>
|
2020-03-09 14:05:03 +00:00
|
|
|
/// Fetches the metadata asynchronously.
|
2018-12-27 23:27:57 +00:00
|
|
|
/// </summary>
|
|
|
|
/// <param name="item">The item.</param>
|
2022-03-31 14:17:37 +00:00
|
|
|
/// <param name="options">The <see cref="MetadataRefreshOptions"/>.</param>
|
|
|
|
/// <param name="cancellationToken">The <see cref="CancellationToken"/>.</param>
|
|
|
|
/// <returns>A <see cref="Task"/> fetching the <see cref="ItemUpdateType"/>.</returns>
|
2018-12-27 23:27:57 +00:00
|
|
|
Task<ItemUpdateType> FetchAsync(TItemType item, MetadataRefreshOptions options, CancellationToken cancellationToken);
|
|
|
|
}
|
|
|
|
}
|