aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/ServerApplicationPaths.cs
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2019-11-08 12:49:00 +0100
committerBond-009 <bond.009@outlook.com>2019-11-21 16:57:49 +0100
commitd4b438791f49dc74fe05ad20575d5f0c111ee234 (patch)
tree13dbbff1b1d02c2976cd705b6188f94c1ab07744 /Emby.Server.Implementations/ServerApplicationPaths.cs
parentd868a8da6c3fadc5cb7f3fce30561afc5ad6fcae (diff)
Don't append transcodes to transcoding temp path
Diffstat (limited to 'Emby.Server.Implementations/ServerApplicationPaths.cs')
-rw-r--r--Emby.Server.Implementations/ServerApplicationPaths.cs34
1 files changed, 0 insertions, 34 deletions
diff --git a/Emby.Server.Implementations/ServerApplicationPaths.cs b/Emby.Server.Implementations/ServerApplicationPaths.cs
index 87de9804a..4b8298abb 100644
--- a/Emby.Server.Implementations/ServerApplicationPaths.cs
+++ b/Emby.Server.Implementations/ServerApplicationPaths.cs
@@ -107,40 +107,6 @@ namespace Emby.Server.Implementations
/// <value>The user configuration directory path.</value>
public string UserConfigurationDirectoryPath => Path.Combine(ConfigurationDirectoryPath, "users");
- public string DefaultTranscodePath => _defaultTranscodePath ?? (_defaultTranscodePath = Path.Combine(ProgramDataPath, "transcodes"));
-
- public string TranscodePath
- {
- get => _transcodePath ?? (_transcodePath = DefaultTranscodePath);
- set => _transcodePath = value;
- }
-
- public string GetTranscodePath()
- {
- var path = TranscodePath;
-
- if (!string.Equals(path, DefaultTranscodePath, StringComparison.OrdinalIgnoreCase))
- {
- try
- {
- Directory.CreateDirectory(path);
-
- var testPath = Path.Combine(path, Guid.NewGuid().ToString());
- Directory.CreateDirectory(testPath);
- Directory.Delete(testPath);
-
- return path;
- }
- catch
- {
- }
- }
-
- path = DefaultTranscodePath;
- Directory.CreateDirectory(path);
- return path;
- }
-
public string InternalMetadataPath
{
get => _internalMetadataPath ?? (_internalMetadataPath = Path.Combine(DataPath, "metadata"));