|
|
|
@ -10,6 +10,8 @@ public class SystemEnvironment |
|
|
|
|
|
|
|
|
|
|
|
TranscodeFolder = Environment.GetEnvironmentVariable("ETV_TRANSCODE_FOLDER"); |
|
|
|
TranscodeFolder = Environment.GetEnvironmentVariable("ETV_TRANSCODE_FOLDER"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
InstanceID = Environment.GetEnvironmentVariable("ETV_INSTANCE_ID"); |
|
|
|
|
|
|
|
|
|
|
|
string uiPortVariable = Environment.GetEnvironmentVariable("ETV_UI_PORT"); |
|
|
|
string uiPortVariable = Environment.GetEnvironmentVariable("ETV_UI_PORT"); |
|
|
|
if (!int.TryParse(uiPortVariable, out int uiPort)) |
|
|
|
if (!int.TryParse(uiPortVariable, out int uiPort)) |
|
|
|
{ |
|
|
|
{ |
|
|
|
@ -71,4 +73,5 @@ public class SystemEnvironment |
|
|
|
public static int? SlowApiMs { get; } |
|
|
|
public static int? SlowApiMs { get; } |
|
|
|
public static int JellyfinPageSize { get; } |
|
|
|
public static int JellyfinPageSize { get; } |
|
|
|
public static bool JellyfinEnableStats { get; } |
|
|
|
public static bool JellyfinEnableStats { get; } |
|
|
|
|
|
|
|
public static string InstanceID { get; } |
|
|
|
} |
|
|
|
} |
|
|
|
|