aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/ServerApplicationPaths.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2017-11-02 12:11:04 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2017-11-02 12:11:04 -0400
commit4c1834c087cbfb06cd3111571dbc4c73d4ff6a0e (patch)
tree934dd0f910170771b7fcd099f659e4747fa4efe7 /Emby.Server.Implementations/ServerApplicationPaths.cs
parentfed5f9e89ba013f8e9b5af71377eb7ee12f51644 (diff)
parent008cea6984d4e4bbdfb0b893e4cf0b6c59cb9d69 (diff)
Merge branch 'master' of https://github.com/MediaBrowser/Emby
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>