aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/ServerApplicationPaths.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2017-10-30 00:51:43 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2017-10-30 00:51:43 -0400
commit8ec8b463942d132a71fd319535c63d7205075e54 (patch)
treea63d5f1a48f2591eae4107b0547934df2206bcca /Emby.Server.Implementations/ServerApplicationPaths.cs
parent93676f683815c4f132b3d5c3a714ee08c2b01216 (diff)
allow separate configuration of date format
Diffstat (limited to 'Emby.Server.Implementations/ServerApplicationPaths.cs')
-rw-r--r--Emby.Server.Implementations/ServerApplicationPaths.cs17
1 files changed, 17 insertions, 0 deletions
diff --git a/Emby.Server.Implementations/ServerApplicationPaths.cs b/Emby.Server.Implementations/ServerApplicationPaths.cs
index 675b0d78c..3e3f7e0d7 100644
--- a/Emby.Server.Implementations/ServerApplicationPaths.cs
+++ b/Emby.Server.Implementations/ServerApplicationPaths.cs
@@ -206,6 +206,23 @@ namespace Emby.Server.Implementations
}
}
+ public string GetTranscodingTempPath()
+ {
+ var path = TranscodingTempPath;
+
+ try
+ {
+ Directory.CreateDirectory(path);
+ return path;
+ }
+ catch
+ {
+ path = Path.Combine(ProgramDataPath, "transcoding-temp");
+ Directory.CreateDirectory(path);
+ return path;
+ }
+ }
+
/// <summary>
/// Gets the game genre path.
/// </summary>