2020-06-19 11:24:13 -07:00
|
|
|
#pragma warning disable CS1591
|
|
|
|
|
2019-01-13 13:03:10 -07:00
|
|
|
using System;
|
2019-01-13 12:26:31 -07:00
|
|
|
using System.Collections.Generic;
|
2020-08-17 12:10:02 -07:00
|
|
|
using System.Net.Http;
|
2019-01-13 12:26:31 -07:00
|
|
|
using System.Threading;
|
|
|
|
using System.Threading.Tasks;
|
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;
|
2020-05-30 23:23:09 -07:00
|
|
|
using MediaBrowser.Providers.Plugins.Tmdb.Movies;
|
2014-02-06 20:10:13 -07:00
|
|
|
|
2020-05-30 23:23:09 -07:00
|
|
|
namespace MediaBrowser.Providers.Plugins.Tmdb.Music
|
2014-02-06 20:10:13 -07:00
|
|
|
{
|
2019-08-18 04:20:52 -07:00
|
|
|
public class TmdbMusicVideoProvider : IRemoteMetadataProvider<MusicVideo, MusicVideoInfo>
|
2014-02-06 20:10:13 -07:00
|
|
|
{
|
|
|
|
public Task<MetadataResult<MusicVideo>> GetMetadata(MusicVideoInfo info, CancellationToken cancellationToken)
|
|
|
|
{
|
2019-08-18 04:20:52 -07:00
|
|
|
return TmdbMovieProvider.Current.GetItemMetadata<MusicVideo>(info, cancellationToken);
|
2014-02-06 20:10:13 -07:00
|
|
|
}
|
|
|
|
|
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
|
|
|
}
|
|
|
|
|
2019-08-18 04:20:52 -07:00
|
|
|
public string Name => TmdbMovieProvider.Current.Name;
|
2014-02-06 20:10:13 -07:00
|
|
|
|
2020-08-17 12:10:02 -07:00
|
|
|
public Task<HttpResponseMessage> GetImageResponse(string url, CancellationToken cancellationToken)
|
2014-02-19 21:53:15 -07:00
|
|
|
{
|
|
|
|
throw new NotImplementedException();
|
|
|
|
}
|
2014-02-06 20:10:13 -07:00
|
|
|
}
|
|
|
|
}
|