mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-04-23 21:47:14 -04:00
Make Tvdb strings const
This commit is contained in:
parent
3965f90236
commit
c597f0de35
2 changed files with 5 additions and 5 deletions
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue