aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Configuration/ServerApplicationPaths.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Controller/Configuration/ServerApplicationPaths.cs')
-rw-r--r--MediaBrowser.Controller/Configuration/ServerApplicationPaths.cs22
1 files changed, 22 insertions, 0 deletions
diff --git a/MediaBrowser.Controller/Configuration/ServerApplicationPaths.cs b/MediaBrowser.Controller/Configuration/ServerApplicationPaths.cs
index 874e97aed..50bc1d10c 100644
--- a/MediaBrowser.Controller/Configuration/ServerApplicationPaths.cs
+++ b/MediaBrowser.Controller/Configuration/ServerApplicationPaths.cs
@@ -193,6 +193,28 @@ namespace MediaBrowser.Controller.Configuration
return _FFProbeAudioCacheDirectory;
}
}
+
+ private string _FFProbeVideoCacheDirectory = null;
+ /// <summary>
+ /// Gets the folder path to the ffprobe video cache directory
+ /// </summary>
+ public string FFProbeVideoCacheDirectory
+ {
+ get
+ {
+ if (_FFProbeVideoCacheDirectory == null)
+ {
+ _FFProbeVideoCacheDirectory = Path.Combine(Kernel.Instance.ApplicationPaths.CacheDirectory, "ffprobe-video");
+
+ if (!Directory.Exists(_FFProbeVideoCacheDirectory))
+ {
+ Directory.CreateDirectory(_FFProbeVideoCacheDirectory);
+ }
+ }
+
+ return _FFProbeVideoCacheDirectory;
+ }
+ }
private string _FFMpegDirectory = null;
/// <summary>