Move AniDbExternalEpisodeId to seperate file

This commit is contained in:
Nils Fürniß 2022-04-30 20:03:55 +02:00
parent e426f5488f
commit 01b09da209
No known key found for this signature in database
GPG Key ID: 79CB1318699409FF
2 changed files with 25 additions and 18 deletions

View File

@ -0,0 +1,25 @@
using MediaBrowser.Controller.Entities.TV;
using MediaBrowser.Controller.Providers;
using MediaBrowser.Model.Entities;
using MediaBrowser.Model.Providers;
namespace Jellyfin.Plugin.AniDB.Providers.AniDB
{
public class AniDbExternalEpisodeId : IExternalId
{
public bool Supports(IHasProviderIds item)
=> item is Episode;
public string ProviderName
=> "AniDB";
public string Key
=> ProviderNames.AniDb;
public ExternalIdMediaType? Type
=> null;
public string UrlFormatString
=> "https://anidb.net/episode/{0}";
}
}

View File

@ -23,22 +23,4 @@ namespace Jellyfin.Plugin.AniDB.Providers.AniDB
public string UrlFormatString
=> "https://anidb.net/anime/{0}";
}
public class AniDbExternalEpisodeId : IExternalId
{
public bool Supports(IHasProviderIds item)
=> item is Episode;
public string ProviderName
=> "AniDB";
public string Key
=> ProviderNames.AniDb;
public ExternalIdMediaType? Type
=> null;
public string UrlFormatString
=> "https://anidb.net/episode/{0}";
}
}