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