jellyfin/MediaBrowser.Controller/Providers/ICustomMetadataProvider.cs

27 lines
988 B
C#
Raw Normal View History

#pragma warning disable CS1591
using System.Threading;
2018-12-27 23:27:57 +00:00
using System.Threading.Tasks;
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>
/// 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);
}
}