jellyfin-server/MediaBrowser.Providers/Tmdb/Music/TmdbMusicVideoProvider.cs

33 lines
1.1 KiB
C#
Raw Normal View History

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