2019-01-13 12:26:31 -07:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Threading;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using MediaBrowser.Common.Net;
|
2014-02-19 21:53:15 -07:00
|
|
|
|
using MediaBrowser.Controller.Entities;
|
2014-02-06 20:10:13 -07:00
|
|
|
|
using MediaBrowser.Controller.Providers;
|
2014-02-19 21:53:15 -07:00
|
|
|
|
using MediaBrowser.Model.Providers;
|
2014-02-06 20:10:13 -07:00
|
|
|
|
using MediaBrowser.Providers.Movies;
|
|
|
|
|
|
|
|
|
|
namespace MediaBrowser.Providers.Music
|
|
|
|
|
{
|
2014-02-08 13:02:35 -07:00
|
|
|
|
public class MovieDbMusicVideoProvider : IRemoteMetadataProvider<MusicVideo, MusicVideoInfo>
|
2014-02-06 20:10:13 -07:00
|
|
|
|
{
|
|
|
|
|
public Task<MetadataResult<MusicVideo>> GetMetadata(MusicVideoInfo info, CancellationToken cancellationToken)
|
|
|
|
|
{
|
|
|
|
|
return MovieDbProvider.Current.GetItemMetadata<MusicVideo>(info, cancellationToken);
|
|
|
|
|
}
|
|
|
|
|
|
2017-05-25 23:48:54 -07:00
|
|
|
|
public Task<IEnumerable<RemoteSearchResult>> GetSearchResults(MusicVideoInfo searchInfo, CancellationToken cancellationToken)
|
2014-02-19 21:53:15 -07:00
|
|
|
|
{
|
2017-05-25 23:48:54 -07:00
|
|
|
|
return Task.FromResult((IEnumerable<RemoteSearchResult>)new List<RemoteSearchResult>());
|
2014-02-19 21:53:15 -07:00
|
|
|
|
}
|
|
|
|
|
|
2014-02-06 20:10:13 -07:00
|
|
|
|
public string Name
|
|
|
|
|
{
|
|
|
|
|
get { return MovieDbProvider.Current.Name; }
|
|
|
|
|
}
|
|
|
|
|
|
2014-02-19 21:53:15 -07:00
|
|
|
|
public Task<HttpResponseInfo> GetImageResponse(string url, CancellationToken cancellationToken)
|
|
|
|
|
{
|
|
|
|
|
throw new NotImplementedException();
|
|
|
|
|
}
|
2014-02-06 20:10:13 -07:00
|
|
|
|
}
|
|
|
|
|
}
|