mirror of
https://github.com/jellyfin/jellyfin-plugin-anidb.git
synced 2024-11-23 13:59:43 +00:00
10.6 compat
This commit is contained in:
parent
5aba3fab14
commit
3edc714fb0
@ -2,20 +2,24 @@ using MediaBrowser.Controller.Entities.Movies;
|
||||
using MediaBrowser.Controller.Entities.TV;
|
||||
using MediaBrowser.Controller.Providers;
|
||||
using MediaBrowser.Model.Entities;
|
||||
using MediaBrowser.Model.Providers;
|
||||
|
||||
namespace Jellyfin.Plugin.Anime.Providers.KitsuIO
|
||||
{
|
||||
public class KitsuIoExternalId : IExternalId
|
||||
{
|
||||
public bool Supports(IHasProviderIds item)
|
||||
=> item is MediaBrowser.Controller.Entities.TV.Series || item is Movie;
|
||||
=> item is Series || item is Movie;
|
||||
|
||||
public string Name
|
||||
public string ProviderName
|
||||
=> "KitsuIO";
|
||||
|
||||
public string Key
|
||||
=> ProviderNames.KitsuIo;
|
||||
|
||||
public ExternalIdMediaType? Type
|
||||
=> ExternalIdMediaType.Series;
|
||||
|
||||
public string UrlFormatString
|
||||
=> "https://kitsu.io/anime/{0}";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user