jellyfin/MediaBrowser.Providers/Music/MovieDbMusicVideoProvider.cs

29 lines
881 B
C#
Raw Normal View History

2014-02-07 03:10:13 +00:00
using MediaBrowser.Controller.Entities;
2014-02-08 20:02:35 +00:00
using MediaBrowser.Controller.Entities.Audio;
2014-02-07 03:10:13 +00:00
using MediaBrowser.Controller.Providers;
using MediaBrowser.Providers.Movies;
using System;
using System.Threading;
using System.Threading.Tasks;
namespace MediaBrowser.Providers.Music
{
2014-02-08 20:02:35 +00:00
public class MovieDbMusicVideoProvider : IRemoteMetadataProvider<MusicVideo, MusicVideoInfo>
2014-02-07 03:10:13 +00:00
{
public Task<MetadataResult<MusicVideo>> GetMetadata(MusicVideoInfo info, CancellationToken cancellationToken)
{
return MovieDbProvider.Current.GetItemMetadata<MusicVideo>(info, cancellationToken);
}
public string Name
{
get { return MovieDbProvider.Current.Name; }
}
public bool HasChanged(IHasMetadata item, DateTime date)
{
return MovieDbProvider.Current.HasChanged(item, date);
}
}
}