aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Andrews <candrews@integralblue.com>2022-07-11 12:56:58 -0400
committerGitHub <noreply@github.com>2022-07-11 12:56:58 -0400
commitac5a4e62f439255d1e479d535f6459a7dd677923 (patch)
tree1584044d748e99a7afb30f68d3c52aad397e4aa5
parent61a7f69aeb4a9400f05aa0b632b90cd4dbebad78 (diff)
Move transcodes to be under CachePath
Move transcodes to be under CachePath instead of ProgramDataPath. Since transcodes are ephemeral (they're cleaned up periodically and recreated if they don't exist), they're more like cache data than program data. Systems can (and oftentimes do) have the cache directory on a different disk, use a different type of file system, or have a different backup policy for the cache path because it contains ephemeral data.
-rw-r--r--MediaBrowser.Common/Configuration/EncodingConfigurationExtensions.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/MediaBrowser.Common/Configuration/EncodingConfigurationExtensions.cs b/MediaBrowser.Common/Configuration/EncodingConfigurationExtensions.cs
index 89740ae08..70a4fe409 100644
--- a/MediaBrowser.Common/Configuration/EncodingConfigurationExtensions.cs
+++ b/MediaBrowser.Common/Configuration/EncodingConfigurationExtensions.cs
@@ -32,7 +32,7 @@ namespace MediaBrowser.Common.Configuration
var transcodingTempPath = configurationManager.GetEncodingOptions().TranscodingTempPath;
if (string.IsNullOrEmpty(transcodingTempPath))
{
- transcodingTempPath = Path.Combine(configurationManager.CommonApplicationPaths.ProgramDataPath, "transcodes");
+ transcodingTempPath = Path.Combine(configurationManager.CommonApplicationPaths.CachePath, "transcodes");
}
// Make sure the directory exists