aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Providers/MediaInfo/FFProbeAudioInfo.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Providers/MediaInfo/FFProbeAudioInfo.cs')
-rw-r--r--MediaBrowser.Providers/MediaInfo/FFProbeAudioInfo.cs36
1 files changed, 18 insertions, 18 deletions
diff --git a/MediaBrowser.Providers/MediaInfo/FFProbeAudioInfo.cs b/MediaBrowser.Providers/MediaInfo/FFProbeAudioInfo.cs
index f2f1663e4..0d4fc6720 100644
--- a/MediaBrowser.Providers/MediaInfo/FFProbeAudioInfo.cs
+++ b/MediaBrowser.Providers/MediaInfo/FFProbeAudioInfo.cs
@@ -61,22 +61,22 @@ namespace MediaBrowser.Providers.MediaInfo
{
cancellationToken.ThrowIfCancellationRequested();
- var idString = item.Id.ToString("N");
- var cachePath = Path.Combine(_appPaths.CachePath,
- "ffprobe-audio",
- idString.Substring(0, 2), idString, "v" + SchemaVersion + _mediaEncoder.Version + item.DateModified.Ticks.ToString(_usCulture) + ".json");
-
- try
- {
- return _json.DeserializeFromFile<Model.MediaInfo.MediaInfo>(cachePath);
- }
- catch (FileNotFoundException)
- {
-
- }
- catch (DirectoryNotFoundException)
- {
- }
+ //var idString = item.Id.ToString("N");
+ //var cachePath = Path.Combine(_appPaths.CachePath,
+ // "ffprobe-audio",
+ // idString.Substring(0, 2), idString, "v" + SchemaVersion + _mediaEncoder.Version + item.DateModified.Ticks.ToString(_usCulture) + ".json");
+
+ //try
+ //{
+ // return _json.DeserializeFromFile<Model.MediaInfo.MediaInfo>(cachePath);
+ //}
+ //catch (FileNotFoundException)
+ //{
+
+ //}
+ //catch (DirectoryNotFoundException)
+ //{
+ //}
var result = await _mediaEncoder.GetMediaInfo(new MediaInfoRequest
{
@@ -86,8 +86,8 @@ namespace MediaBrowser.Providers.MediaInfo
}, cancellationToken).ConfigureAwait(false);
- Directory.CreateDirectory(Path.GetDirectoryName(cachePath));
- _json.SerializeToFile(result, cachePath);
+ //Directory.CreateDirectory(Path.GetDirectoryName(cachePath));
+ //_json.SerializeToFile(result, cachePath);
return result;
}