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