diff options
Diffstat (limited to 'MediaBrowser.Providers/TV/TvExternalIds.cs')
| -rw-r--r-- | MediaBrowser.Providers/TV/TvExternalIds.cs | 61 |
1 files changed, 12 insertions, 49 deletions
diff --git a/MediaBrowser.Providers/TV/TvExternalIds.cs b/MediaBrowser.Providers/TV/TvExternalIds.cs index 6d5f4abbb..001ce1465 100644 --- a/MediaBrowser.Providers/TV/TvExternalIds.cs +++ b/MediaBrowser.Providers/TV/TvExternalIds.cs @@ -1,4 +1,3 @@ -using MediaBrowser.Controller.Entities; using MediaBrowser.Controller.Entities.TV; using MediaBrowser.Controller.Providers; using MediaBrowser.Model.Entities; @@ -7,20 +6,11 @@ namespace MediaBrowser.Providers.TV { public class Zap2ItExternalId : IExternalId { - public string Name - { - get { return "Zap2It"; } - } + public string Name => "Zap2It"; - public string Key - { - get { return MetadataProviders.Zap2It.ToString(); } - } + public string Key => MetadataProviders.Zap2It.ToString(); - public string UrlFormatString - { - get { return "http://tvlistings.zap2it.com/overview.html?programSeriesId={0}"; } - } + public string UrlFormatString => "http://tvlistings.zap2it.com/overview.html?programSeriesId={0}"; public bool Supports(IHasProviderIds item) { @@ -30,20 +20,11 @@ namespace MediaBrowser.Providers.TV public class TvdbExternalId : IExternalId { - public string Name - { - get { return "TheTVDB"; } - } + public string Name => "TheTVDB"; - public string Key - { - get { return MetadataProviders.Tvdb.ToString(); } - } + public string Key => MetadataProviders.Tvdb.ToString(); - public string UrlFormatString - { - get { return TvdbPrescanTask.TvdbBaseUrl + "?tab=series&id={0}"; } - } + public string UrlFormatString => TvdbPrescanTask.TvdbBaseUrl + "?tab=series&id={0}"; public bool Supports(IHasProviderIds item) { @@ -53,20 +34,11 @@ namespace MediaBrowser.Providers.TV public class TvdbSeasonExternalId : IExternalId { - public string Name - { - get { return "TheTVDB"; } - } + public string Name => "TheTVDB"; - public string Key - { - get { return MetadataProviders.Tvdb.ToString(); } - } + public string Key => MetadataProviders.Tvdb.ToString(); - public string UrlFormatString - { - get { return null; } - } + public string UrlFormatString => null; public bool Supports(IHasProviderIds item) { @@ -76,20 +48,11 @@ namespace MediaBrowser.Providers.TV public class TvdbEpisodeExternalId : IExternalId { - public string Name - { - get { return "TheTVDB"; } - } + public string Name => "TheTVDB"; - public string Key - { - get { return MetadataProviders.Tvdb.ToString(); } - } + public string Key => MetadataProviders.Tvdb.ToString(); - public string UrlFormatString - { - get { return TvdbPrescanTask.TvdbBaseUrl + "?tab=episode&id={0}"; } - } + public string UrlFormatString => TvdbPrescanTask.TvdbBaseUrl + "?tab=episode&id={0}"; public bool Supports(IHasProviderIds item) { |
