aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2013-06-12 17:47:02 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2013-06-12 17:47:02 -0400
commit3623f23c27e36b2d6a22f63604fa4b8d6d9e91fb (patch)
tree1bca3ea8a579c11b5fe0419faaaed0b98f3a8148
parentdef34281994508213e5200fb150cdbcc817c55ab (diff)
don't cache video output at all
-rw-r--r--MediaBrowser.Api/ApiEntryPoint.cs7
1 files changed, 4 insertions, 3 deletions
diff --git a/MediaBrowser.Api/ApiEntryPoint.cs b/MediaBrowser.Api/ApiEntryPoint.cs
index 431b6d615..9737fafca 100644
--- a/MediaBrowser.Api/ApiEntryPoint.cs
+++ b/MediaBrowser.Api/ApiEntryPoint.cs
@@ -1,10 +1,10 @@
-using System.IO;
-using MediaBrowser.Controller.Plugins;
+using MediaBrowser.Controller.Plugins;
using MediaBrowser.Model.Logging;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
+using System.IO;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
@@ -278,7 +278,8 @@ namespace MediaBrowser.Api
// If it didn't complete successfully cleanup the partial files
// Also don't cache output from resume points
- if (!hasExitedSuccessfully || job.StartTimeTicks.HasValue)
+ // Also don't cache video
+ if (!hasExitedSuccessfully || job.StartTimeTicks.HasValue || job.IsVideo)
{
Logger.Info("Deleting partial stream file(s) {0}", job.Path);