2014-01-31 19:55:21 +00:00
|
|
|
|
using System.Threading;
|
|
|
|
|
using System.Threading.Tasks;
|
2014-02-07 03:10:13 +00:00
|
|
|
|
using MediaBrowser.Controller.Entities;
|
2014-01-31 19:55:21 +00:00
|
|
|
|
|
|
|
|
|
namespace MediaBrowser.Controller.Providers
|
|
|
|
|
{
|
|
|
|
|
public interface ILocalMetadataProvider : IMetadataProvider
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public interface ILocalMetadataProvider<TItemType> : IMetadataProvider<TItemType>, ILocalMetadataProvider
|
|
|
|
|
where TItemType : IHasMetadata
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the metadata.
|
|
|
|
|
/// </summary>
|
2014-02-06 04:39:16 +00:00
|
|
|
|
/// <param name="info">The information.</param>
|
2014-01-31 19:55:21 +00:00
|
|
|
|
/// <param name="cancellationToken">The cancellation token.</param>
|
|
|
|
|
/// <returns>Task{MetadataResult{`0}}.</returns>
|
2014-02-06 04:39:16 +00:00
|
|
|
|
Task<MetadataResult<TItemType>> GetMetadata(ItemInfo info, CancellationToken cancellationToken);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class ItemInfo
|
|
|
|
|
{
|
|
|
|
|
public string Path { get; set; }
|
|
|
|
|
|
|
|
|
|
public bool IsInMixedFolder { get; set; }
|
2014-01-31 19:55:21 +00:00
|
|
|
|
}
|
|
|
|
|
}
|