aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Server/Program.cs
diff options
context:
space:
mode:
authorBond_009 <bond.009@outlook.com>2019-02-01 18:15:35 +0100
committerBond_009 <bond.009@outlook.com>2019-02-01 18:17:43 +0100
commit660f6174b32268edf7b9bdb4441eef83b187daaf (patch)
treec03e38772c1788ad0d650c04f2a420c6431b7100 /Jellyfin.Server/Program.cs
parent8af1e93cd4c9187ec46e2a6c7002791190be13fc (diff)
Rebase on master
Diffstat (limited to 'Jellyfin.Server/Program.cs')
-rw-r--r--Jellyfin.Server/Program.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Jellyfin.Server/Program.cs b/Jellyfin.Server/Program.cs
index e0d5ed623..5c8608a92 100644
--- a/Jellyfin.Server/Program.cs
+++ b/Jellyfin.Server/Program.cs
@@ -205,9 +205,9 @@ namespace Jellyfin.Server
string cacheDir = Environment.GetEnvironmentVariable("JELLYFIN_CACHE_DIR");
if (string.IsNullOrEmpty(cacheDir))
{
- if (options.ContainsOption("-cachedir"))
+ if (options.CacheDir != null)
{
- cacheDir = options.GetOption("-cachedir");
+ cacheDir = options.CacheDir;
}
else if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
{