diff options
| author | Luke <luke.pulverenti@gmail.com> | 2017-10-30 00:53:37 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-10-30 00:53:37 -0400 |
| commit | 135ea765b932f00529006da727b418d87ac618b4 (patch) | |
| tree | cc1682ad53019390b54d9a7310506f5271a71dbc /Emby.Server.Implementations/ServerApplicationPaths.cs | |
| parent | 1dcb3a1369c41f292b1cb0f9ac32b100f30c2485 (diff) | |
| parent | 74136371b5d2f76fd34feadbdfc34d4760cccbda (diff) | |
Merge pull request #2988 from MediaBrowser/dev
Dev
Diffstat (limited to 'Emby.Server.Implementations/ServerApplicationPaths.cs')
| -rw-r--r-- | Emby.Server.Implementations/ServerApplicationPaths.cs | 17 |
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> |
