diff options
| author | Claus Vium <clausvium@gmail.com> | 2019-02-20 19:52:50 +0100 |
|---|---|---|
| committer | Claus Vium <clausvium@gmail.com> | 2019-02-20 19:55:06 +0100 |
| commit | c597f0de35f64f5886ebe717742897aaf63e9560 (patch) | |
| tree | 149952575f6e77a749ec2701e8b5d547ede5f6c3 | |
| parent | 3965f90236f8add9bca8d507aeba92675948b7f8 (diff) | |
Make Tvdb strings const
| -rw-r--r-- | MediaBrowser.Providers/TV/TheTVDB/TvdbUtils.cs | 6 | ||||
| -rw-r--r-- | MediaBrowser.Providers/TV/TvExternalIds.cs | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/MediaBrowser.Providers/TV/TheTVDB/TvdbUtils.cs b/MediaBrowser.Providers/TV/TheTVDB/TvdbUtils.cs index 8610908bd..112cbf800 100644 --- a/MediaBrowser.Providers/TV/TheTVDB/TvdbUtils.cs +++ b/MediaBrowser.Providers/TV/TheTVDB/TvdbUtils.cs @@ -5,9 +5,9 @@ namespace MediaBrowser.Providers.TV.TheTVDB { public static class TvdbUtils { - public static readonly string TvdbApiKey = "OG4V3YJ3FAP7FP2K"; - public static readonly string TvdbBaseUrl = "https://www.thetvdb.com/"; - public static readonly string BannerUrl = TvdbBaseUrl + "banners/"; + public const string TvdbApiKey = "OG4V3YJ3FAP7FP2K"; + public const string TvdbBaseUrl = "https://www.thetvdb.com/"; + public const string BannerUrl = TvdbBaseUrl + "banners/"; public static ImageType GetImageTypeFromKeyType(string keyType) { diff --git a/MediaBrowser.Providers/TV/TvExternalIds.cs b/MediaBrowser.Providers/TV/TvExternalIds.cs index f50ebc1af..3f889fbbe 100644 --- a/MediaBrowser.Providers/TV/TvExternalIds.cs +++ b/MediaBrowser.Providers/TV/TvExternalIds.cs @@ -25,7 +25,7 @@ namespace MediaBrowser.Providers.TV public string Key => MetadataProviders.Tvdb.ToString(); - public string UrlFormatString => "https://thetvdb.com/?tab=series&id={0}"; + public string UrlFormatString => TvdbUtils.TvdbBaseUrl + "?tab=series&id={0}"; public bool Supports(IHasProviderIds item) { @@ -53,7 +53,7 @@ namespace MediaBrowser.Providers.TV public string Key => MetadataProviders.Tvdb.ToString(); - public string UrlFormatString => "https://thetvdb.com/?tab=episode&id={0}"; + public string UrlFormatString => TvdbUtils.TvdbBaseUrl + "?tab=episode&id={0}"; public bool Supports(IHasProviderIds item) { |
