TvExternalIds.cs 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. using MediaBrowser.Controller.Entities.TV;
  2. using MediaBrowser.Controller.Providers;
  3. using MediaBrowser.Model.Entities;
  4. namespace MediaBrowser.Providers.TV
  5. {
  6. public class Zap2ItExternalId : IExternalId
  7. {
  8. public string Name => "Zap2It";
  9. public string Key => MetadataProviders.Zap2It.ToString();
  10. public string UrlFormatString => "http://tvlistings.zap2it.com/overview.html?programSeriesId={0}";
  11. public bool Supports(IHasProviderIds item)
  12. {
  13. return item is Series;
  14. }
  15. }
  16. public class TvdbExternalId : IExternalId
  17. {
  18. public string Name => "TheTVDB";
  19. public string Key => MetadataProviders.Tvdb.ToString();
  20. public string UrlFormatString => TvdbPrescanTask.TvdbBaseUrl + "?tab=series&id={0}";
  21. public bool Supports(IHasProviderIds item)
  22. {
  23. return item is Series;
  24. }
  25. }
  26. public class TvdbSeasonExternalId : IExternalId
  27. {
  28. public string Name => "TheTVDB";
  29. public string Key => MetadataProviders.Tvdb.ToString();
  30. public string UrlFormatString => null;
  31. public bool Supports(IHasProviderIds item)
  32. {
  33. return item is Season;
  34. }
  35. }
  36. public class TvdbEpisodeExternalId : IExternalId
  37. {
  38. public string Name => "TheTVDB";
  39. public string Key => MetadataProviders.Tvdb.ToString();
  40. public string UrlFormatString => TvdbPrescanTask.TvdbBaseUrl + "?tab=episode&id={0}";
  41. public bool Supports(IHasProviderIds item)
  42. {
  43. return item is Episode;
  44. }
  45. }
  46. }