Removed references to Plex

This commit is contained in:
tidusjar 2017-02-03 22:51:28 +00:00
commit 94bb1ed824
23 changed files with 1821 additions and 1825 deletions

View file

@ -354,6 +354,12 @@ namespace Ombi.UI.Helpers
return helper.Raw(GetCustomizationSettings().ApplicationName);
}
public static IHtmlString GetMediaServerName(this HtmlHelpers helper)
{
var s = GetEmbySettings();
return helper.Raw(s.Enable ? "Emby" : "Plex");
}
private static string GetBaseUrl()
{
return GetSettings().BaseUrl;
@ -371,7 +377,7 @@ namespace Ombi.UI.Helpers
private static CustomizationSettings GetCustomizationSettings()
{
var returnValue = Cache.GetOrSet(CacheKeys.GetPlexRequestSettings, () =>
var returnValue = Cache.GetOrSet(CacheKeys.GetCustomizationSettings, () =>
{
var settings = Locator.Resolve<ISettingsService<CustomizationSettings>>().GetSettings();
return settings;
@ -379,6 +385,16 @@ namespace Ombi.UI.Helpers
return returnValue;
}
private static EmbySettings GetEmbySettings()
{
var returnValue = Cache.GetOrSet(CacheKeys.GetEmbySettings, () =>
{
var settings = Locator.Resolve<ISettingsService<EmbySettings>>().GetSettings();
return settings;
});
return returnValue;
}
private static string GetLinkUrl(string assetLocation)
{
return string.IsNullOrEmpty(assetLocation) ? string.Empty : $"{assetLocation}";