jellyfin/MediaBrowser.Providers/Music/MovieDbMusicVideoProvider.cs

41 lines
1.3 KiB
C#
Raw Normal View History

using MediaBrowser.Common.Net;
using MediaBrowser.Controller.Entities;
2014-02-06 20:10:13 -07:00
using MediaBrowser.Controller.Providers;
using MediaBrowser.Model.Providers;
2014-02-06 20:10:13 -07:00
using MediaBrowser.Providers.Movies;
using System;
using System.Collections.Generic;
2014-02-06 20:10:13 -07:00
using System.Threading;
using System.Threading.Tasks;
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);
}
public async Task<IEnumerable<RemoteSearchResult>> GetSearchResults(MusicVideoInfo searchInfo, CancellationToken cancellationToken)
{
return new List<RemoteSearchResult>();
}
2014-02-06 20:10:13 -07:00
public string Name
{
get { return MovieDbProvider.Current.Name; }
}
public bool HasChanged(IHasMetadata item, DateTime date)
{
return MovieDbProvider.Current.HasChanged(item, date);
}
public Task<HttpResponseInfo> GetImageResponse(string url, CancellationToken cancellationToken)
{
throw new NotImplementedException();
}
2014-02-06 20:10:13 -07:00
}
}