mirror of
https://github.com/jellyfin/jellyfin-plugin-anidb.git
synced 2024-11-26 23:50:26 +00:00
Move AniDbExternalEpisodeId to seperate file
This commit is contained in:
parent
e426f5488f
commit
01b09da209
@ -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}";
|
||||
}
|
||||
}
|
@ -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}";
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user