2018-12-27 18:27:57 -05:00
|
|
|
|
using MediaBrowser.Controller.Entities;
|
|
|
|
|
using System.Threading;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace MediaBrowser.Controller.Providers
|
|
|
|
|
{
|
|
|
|
|
public interface ILocalMetadataProvider : IMetadataProvider
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public interface ILocalMetadataProvider<TItemType> : IMetadataProvider<TItemType>, ILocalMetadataProvider
|
|
|
|
|
where TItemType : BaseItem
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the metadata.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="info">The information.</param>
|
|
|
|
|
/// <param name="directoryService">The directory service.</param>
|
|
|
|
|
/// <param name="cancellationToken">The cancellation token.</param>
|
|
|
|
|
/// <returns>Task{MetadataResult{`0}}.</returns>
|
2019-01-07 18:27:46 -05:00
|
|
|
|
Task<MetadataResult<TItemType>> GetMetadata(ItemInfo info,
|
2018-12-27 18:27:57 -05:00
|
|
|
|
IDirectoryService directoryService,
|
|
|
|
|
CancellationToken cancellationToken);
|
|
|
|
|
}
|
|
|
|
|
}
|