TvExternalIds.cs 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. using MediaBrowser.Controller.Entities;
  2. using MediaBrowser.Controller.Entities.TV;
  3. using MediaBrowser.Controller.Providers;
  4. using MediaBrowser.Model.Entities;
  5. namespace MediaBrowser.Providers.TV
  6. {
  7. public class Zap2ItExternalId : IExternalId
  8. {
  9. public string Name
  10. {
  11. get { return "Zap2It"; }
  12. }
  13. public string Key
  14. {
  15. get { return MetadataProviders.Zap2It.ToString(); }
  16. }
  17. public string UrlFormatString
  18. {
  19. get { return "http://tvlistings.zap2it.com/tv/dexter/{0}?aid=zap2it"; }
  20. }
  21. public bool Supports(IHasProviderIds item)
  22. {
  23. return item is Series;
  24. }
  25. }
  26. public class TvdbExternalId : IExternalId
  27. {
  28. public string Name
  29. {
  30. get { return "TheTVDB"; }
  31. }
  32. public string Key
  33. {
  34. get { return MetadataProviders.Tvdb.ToString(); }
  35. }
  36. public string UrlFormatString
  37. {
  38. get { return "http://thetvdb.com/index.php?tab=series&id={0}"; }
  39. }
  40. public bool Supports(IHasProviderIds item)
  41. {
  42. return item is Series;
  43. }
  44. }
  45. public class TvdbEpisodeExternalId : IExternalId
  46. {
  47. public string Name
  48. {
  49. get { return "TheTVDB"; }
  50. }
  51. public string Key
  52. {
  53. get { return MetadataProviders.Tvdb.ToString(); }
  54. }
  55. public string UrlFormatString
  56. {
  57. get { return null; }
  58. }
  59. public bool Supports(IHasProviderIds item)
  60. {
  61. return item is Episode;
  62. }
  63. }
  64. public class TvComSeriesExternalId : IExternalId
  65. {
  66. public string Name
  67. {
  68. get { return "TV.com"; }
  69. }
  70. public string Key
  71. {
  72. get { return MetadataProviders.Tvcom.ToString(); }
  73. }
  74. public string UrlFormatString
  75. {
  76. get { return null; }
  77. }
  78. public bool Supports(IHasProviderIds item)
  79. {
  80. return item is Series;
  81. }
  82. }
  83. public class TvComPersonExternalId : IExternalId
  84. {
  85. public string Name
  86. {
  87. get { return "TV.com"; }
  88. }
  89. public string Key
  90. {
  91. get { return MetadataProviders.Tvcom.ToString(); }
  92. }
  93. public string UrlFormatString
  94. {
  95. get { return null; }
  96. }
  97. public bool Supports(IHasProviderIds item)
  98. {
  99. return item is Person;
  100. }
  101. }
  102. }