mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-17 22:43:07 +03:00
Fix GetTranscodePath function and cache path update logline
* GetTranscodePath returned an empty string after the option was left blank in the web UI * Unified the log style for all paths
This commit is contained in:
@@ -22,7 +22,14 @@ namespace MediaBrowser.Common.Configuration
|
||||
/// <param name="configurationManager">The Configuration manager.</param>
|
||||
/// <returns>The transcoding temp path.</returns>
|
||||
public static string GetTranscodePath(this IConfigurationManager configurationManager)
|
||||
=> configurationManager.GetEncodingOptions().TranscodingTempPath
|
||||
?? Path.Combine(configurationManager.CommonApplicationPaths.ProgramDataPath, "transcodes");
|
||||
{
|
||||
var transcodingTempPath = configurationManager.GetEncodingOptions().TranscodingTempPath;
|
||||
if (string.IsNullOrEmpty(transcodingTempPath))
|
||||
{
|
||||
return Path.Combine(configurationManager.CommonApplicationPaths.ProgramDataPath, "transcodes");
|
||||
}
|
||||
|
||||
return transcodingTempPath;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user