jellyfin-server/MediaBrowser.Providers/TV/TvExternalIds.cs

64 lines
1.6 KiB
C#
Raw Normal View History

using MediaBrowser.Controller.Entities.TV;
2014-02-21 18:48:15 +00:00
using MediaBrowser.Controller.Providers;
using MediaBrowser.Model.Entities;
using MediaBrowser.Providers.TV.TheTVDB;
2014-02-21 18:48:15 +00:00
namespace MediaBrowser.Providers.TV
{
public class Zap2ItExternalId : IExternalId
{
public string Name => "Zap2It";
2014-02-21 18:48:15 +00:00
public string Key => MetadataProviders.Zap2It.ToString();
2014-02-21 18:48:15 +00:00
public string UrlFormatString => "http://tvlistings.zap2it.com/overview.html?programSeriesId={0}";
2014-02-21 18:48:15 +00:00
public bool Supports(IHasProviderIds item)
{
return item is Series;
}
}
public class TvdbExternalId : IExternalId
{
public string Name => "TheTVDB";
2014-02-21 18:48:15 +00:00
public string Key => MetadataProviders.Tvdb.ToString();
2014-02-21 18:48:15 +00:00
public string UrlFormatString => TvdbPrescanTask.TvdbBaseUrl + "?tab=series&id={0}";
2014-02-21 18:48:15 +00:00
public bool Supports(IHasProviderIds item)
{
return item is Series;
}
}
2014-07-07 14:23:08 +00:00
public class TvdbSeasonExternalId : IExternalId
{
public string Name => "TheTVDB";
2014-07-07 14:23:08 +00:00
public string Key => MetadataProviders.Tvdb.ToString();
2014-07-07 14:23:08 +00:00
public string UrlFormatString => null;
2014-07-07 14:23:08 +00:00
public bool Supports(IHasProviderIds item)
{
return item is Season;
}
}
2014-02-21 21:44:10 +00:00
public class TvdbEpisodeExternalId : IExternalId
{
public string Name => "TheTVDB";
2014-02-21 21:44:10 +00:00
public string Key => MetadataProviders.Tvdb.ToString();
2014-02-21 21:44:10 +00:00
public string UrlFormatString => TvdbPrescanTask.TvdbBaseUrl + "?tab=episode&id={0}";
2014-02-21 21:44:10 +00:00
public bool Supports(IHasProviderIds item)
{
return item is Episode;
}
}
2014-02-21 18:48:15 +00:00
}