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