2014-02-20 04:53:15 +00:00
|
|
|
|
using MediaBrowser.Common.Net;
|
|
|
|
|
using MediaBrowser.Controller.Entities;
|
2014-02-07 03:10:13 +00:00
|
|
|
|
using MediaBrowser.Controller.Providers;
|
2014-02-20 04:53:15 +00:00
|
|
|
|
using MediaBrowser.Model.Providers;
|
2014-02-07 03:10:13 +00:00
|
|
|
|
using MediaBrowser.Providers.Movies;
|
|
|
|
|
using System;
|
2014-02-20 04:53:15 +00:00
|
|
|
|
using System.Collections.Generic;
|
2014-02-07 03:10:13 +00:00
|
|
|
|
using System.Threading;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace MediaBrowser.Providers.Music
|
|
|
|
|
{
|
2014-02-08 20:02:35 +00:00
|
|
|
|
public class MovieDbMusicVideoProvider : IRemoteMetadataProvider<MusicVideo, MusicVideoInfo>
|
2014-02-07 03:10:13 +00:00
|
|
|
|
{
|
|
|
|
|
public Task<MetadataResult<MusicVideo>> GetMetadata(MusicVideoInfo info, CancellationToken cancellationToken)
|
|
|
|
|
{
|
|
|
|
|
return MovieDbProvider.Current.GetItemMetadata<MusicVideo>(info, cancellationToken);
|
|
|
|
|
}
|
|
|
|
|
|
2014-02-20 04:53:15 +00:00
|
|
|
|
public async Task<IEnumerable<RemoteSearchResult>> GetSearchResults(MusicVideoInfo searchInfo, CancellationToken cancellationToken)
|
|
|
|
|
{
|
|
|
|
|
return new List<RemoteSearchResult>();
|
|
|
|
|
}
|
|
|
|
|
|
2014-02-07 03:10:13 +00:00
|
|
|
|
public string Name
|
|
|
|
|
{
|
|
|
|
|
get { return MovieDbProvider.Current.Name; }
|
|
|
|
|
}
|
|
|
|
|
|
2016-04-27 21:09:52 +00:00
|
|
|
|
public bool HasChanged(IHasMetadata item, IDirectoryService directoryService)
|
2014-02-07 03:10:13 +00:00
|
|
|
|
{
|
2016-04-27 21:09:52 +00:00
|
|
|
|
return MovieDbProvider.Current.HasChanged(item);
|
2014-02-07 03:10:13 +00:00
|
|
|
|
}
|
2014-02-20 04:53:15 +00:00
|
|
|
|
|
|
|
|
|
public Task<HttpResponseInfo> GetImageResponse(string url, CancellationToken cancellationToken)
|
|
|
|
|
{
|
|
|
|
|
throw new NotImplementedException();
|
|
|
|
|
}
|
2014-02-07 03:10:13 +00:00
|
|
|
|
}
|
|
|
|
|
}
|