2019-01-13 20:03:10 +00:00
|
|
|
using MediaBrowser.Controller.Entities.TV;
|
2014-02-21 18:48:15 +00:00
|
|
|
using MediaBrowser.Controller.Providers;
|
|
|
|
using MediaBrowser.Model.Entities;
|
2020-05-17 19:57:24 +00:00
|
|
|
using MediaBrowser.Model.Providers;
|
2020-03-09 14:53:07 +00:00
|
|
|
using MediaBrowser.Providers.Plugins.TheTvdb;
|
2014-02-21 18:48:15 +00:00
|
|
|
|
|
|
|
namespace MediaBrowser.Providers.TV
|
|
|
|
{
|
|
|
|
public class Zap2ItExternalId : IExternalId
|
|
|
|
{
|
2019-09-10 20:37:53 +00:00
|
|
|
/// <inheritdoc />
|
2020-05-17 21:35:43 +00:00
|
|
|
public string ProviderName => "Zap2It";
|
2014-02-21 18:48:15 +00:00
|
|
|
|
2019-09-10 20:37:53 +00:00
|
|
|
/// <inheritdoc />
|
2019-01-13 20:31:14 +00:00
|
|
|
public string Key => MetadataProviders.Zap2It.ToString();
|
2014-02-21 18:48:15 +00:00
|
|
|
|
2020-03-22 19:58:53 +00:00
|
|
|
/// <inheritdoc />
|
2020-05-17 19:29:53 +00:00
|
|
|
public ExternalIdMediaType Type => ExternalIdMediaType.General;
|
2020-03-22 19:58:53 +00:00
|
|
|
|
2019-09-10 20:37:53 +00:00
|
|
|
/// <inheritdoc />
|
2019-01-13 20:31:14 +00:00
|
|
|
public string UrlFormatString => "http://tvlistings.zap2it.com/overview.html?programSeriesId={0}";
|
2014-02-21 18:48:15 +00:00
|
|
|
|
2019-09-10 20:37:53 +00:00
|
|
|
/// <inheritdoc />
|
|
|
|
public bool Supports(IHasProviderIds item) => item is Series;
|
2014-02-21 18:48:15 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public class TvdbExternalId : IExternalId
|
|
|
|
{
|
2019-09-10 20:37:53 +00:00
|
|
|
/// <inheritdoc />
|
2020-05-17 21:35:43 +00:00
|
|
|
public string ProviderName => "TheTVDB";
|
2014-02-21 18:48:15 +00:00
|
|
|
|
2019-09-10 20:37:53 +00:00
|
|
|
/// <inheritdoc />
|
2019-01-13 20:31:14 +00:00
|
|
|
public string Key => MetadataProviders.Tvdb.ToString();
|
2014-02-21 18:48:15 +00:00
|
|
|
|
2020-03-22 19:58:53 +00:00
|
|
|
/// <inheritdoc />
|
2020-05-17 19:29:53 +00:00
|
|
|
public ExternalIdMediaType Type => ExternalIdMediaType.General;
|
2020-03-22 19:58:53 +00:00
|
|
|
|
2019-09-10 20:37:53 +00:00
|
|
|
/// <inheritdoc />
|
2019-02-20 18:52:50 +00:00
|
|
|
public string UrlFormatString => TvdbUtils.TvdbBaseUrl + "?tab=series&id={0}";
|
2014-02-21 18:48:15 +00:00
|
|
|
|
2019-09-10 20:37:53 +00:00
|
|
|
/// <inheritdoc />
|
|
|
|
public bool Supports(IHasProviderIds item) => item is Series;
|
|
|
|
|
2014-02-21 18:48:15 +00:00
|
|
|
}
|
|
|
|
|
2014-07-07 14:23:08 +00:00
|
|
|
public class TvdbSeasonExternalId : IExternalId
|
|
|
|
{
|
2019-09-10 20:37:53 +00:00
|
|
|
/// <inheritdoc />
|
2020-05-17 21:35:43 +00:00
|
|
|
public string ProviderName => "TheTVDB";
|
2014-07-07 14:23:08 +00:00
|
|
|
|
2019-09-10 20:37:53 +00:00
|
|
|
/// <inheritdoc />
|
2019-01-13 20:31:14 +00:00
|
|
|
public string Key => MetadataProviders.Tvdb.ToString();
|
2014-07-07 14:23:08 +00:00
|
|
|
|
2020-03-22 19:58:53 +00:00
|
|
|
/// <inheritdoc />
|
2020-03-26 21:26:12 +00:00
|
|
|
public ExternalIdMediaType Type => ExternalIdMediaType.Season;
|
2020-03-22 19:58:53 +00:00
|
|
|
|
2019-09-10 20:37:53 +00:00
|
|
|
/// <inheritdoc />
|
2019-01-13 20:31:14 +00:00
|
|
|
public string UrlFormatString => null;
|
2014-07-07 14:23:08 +00:00
|
|
|
|
2019-09-10 20:37:53 +00:00
|
|
|
/// <inheritdoc />
|
|
|
|
public bool Supports(IHasProviderIds item) => item is Season;
|
2014-07-07 14:23:08 +00:00
|
|
|
}
|
|
|
|
|
2014-02-21 21:44:10 +00:00
|
|
|
public class TvdbEpisodeExternalId : IExternalId
|
|
|
|
{
|
2019-09-10 20:37:53 +00:00
|
|
|
/// <inheritdoc />
|
2020-05-17 21:35:43 +00:00
|
|
|
public string ProviderName => "TheTVDB";
|
2014-02-21 21:44:10 +00:00
|
|
|
|
2019-09-10 20:37:53 +00:00
|
|
|
/// <inheritdoc />
|
2019-01-13 20:31:14 +00:00
|
|
|
public string Key => MetadataProviders.Tvdb.ToString();
|
2014-02-21 21:44:10 +00:00
|
|
|
|
2020-03-22 19:58:53 +00:00
|
|
|
/// <inheritdoc />
|
2020-03-26 21:26:12 +00:00
|
|
|
public ExternalIdMediaType Type => ExternalIdMediaType.Episode;
|
2020-03-22 19:58:53 +00:00
|
|
|
|
2019-09-10 20:37:53 +00:00
|
|
|
/// <inheritdoc />
|
2019-02-20 18:52:50 +00:00
|
|
|
public string UrlFormatString => TvdbUtils.TvdbBaseUrl + "?tab=episode&id={0}";
|
2014-02-21 21:44:10 +00:00
|
|
|
|
2019-09-10 20:37:53 +00:00
|
|
|
/// <inheritdoc />
|
|
|
|
public bool Supports(IHasProviderIds item) => item is Episode;
|
2014-02-21 21:44:10 +00:00
|
|
|
}
|
2014-02-21 18:48:15 +00:00
|
|
|
}
|