Extract imagetype-to-keytype statements into a utility function and move tvdb specific utils to separate class

This commit is contained in:
Claus Vium
2019-02-13 11:21:56 +01:00
parent 1aaa8de1f9
commit b9efcace79
8 changed files with 60 additions and 65 deletions

View File

@@ -7,26 +7,6 @@ namespace MediaBrowser.Controller.Library
/// </summary>
public static class TVUtils
{
/// <summary>
/// The TVDB API key
/// </summary>
public static readonly string TvdbApiKey = "OG4V3YJ3FAP7FP2K";
public static readonly string TvdbBaseUrl = "https://www.thetvdb.com/";
/// <summary>
/// The banner URL
/// </summary>
public static readonly string BannerUrl = TvdbBaseUrl + "banners/";
public static string NormalizeLanguage(string language)
{
if (string.IsNullOrWhiteSpace(language))
{
return null;
}
// pt-br is just pt to tvdb
return language.Split('-')[0].ToLowerInvariant();
}
/// <summary>
/// Gets the air days.
/// </summary>