mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 02:26:55 -07:00
Removed references to Plex
This commit is contained in:
parent
2dfcef980e
commit
94bb1ed824
23 changed files with 1821 additions and 1825 deletions
|
@ -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}";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue