diff options
| author | Joshua M. Boniface <joshua@boniface.me> | 2019-11-24 15:13:50 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-11-24 15:13:50 -0500 |
| commit | 48120d01dc1b73f58eb3b2c17530622320624721 (patch) | |
| tree | 95242d502f276a6ca82f119ca61697a2ff6312cd /Emby.Server.Implementations/ServerApplicationPaths.cs | |
| parent | db581c4d9b30693cfd16e1d2e4c3f802c50726e5 (diff) | |
| parent | e808e8b2d2184a1759abe29d57be8396a39b598d (diff) | |
Merge pull request #1991 from Bond-009/transtemp
Don't append transcodes to transcoding temp path
Diffstat (limited to 'Emby.Server.Implementations/ServerApplicationPaths.cs')
| -rw-r--r-- | Emby.Server.Implementations/ServerApplicationPaths.cs | 34 |
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")); |
