瀏覽代碼

fixes #525 - Edit Series Run Time through Web Dashboard

Luke Pulverenti 11 年之前
父節點
當前提交
51a388939f
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      MediaBrowser.Api/ItemUpdateService.cs

+ 6 - 0
MediaBrowser.Api/ItemUpdateService.cs

@@ -248,6 +248,12 @@ namespace MediaBrowser.Api
                 item.LockedFields.Clear();
                 item.LockedFields.Clear();
             }
             }
 
 
+            // Only allow this for series. Runtimes for media comes from ffprobe.
+            if (item is Series)
+            {
+                item.RunTimeTicks = request.RunTimeTicks;
+            }
+
             foreach (var pair in request.ProviderIds.ToList())
             foreach (var pair in request.ProviderIds.ToList())
             {
             {
                 if (string.IsNullOrEmpty(pair.Value))
                 if (string.IsNullOrEmpty(pair.Value))