浏览代码

Add default of 5 minutes

artiume 4 年之前
父节点
当前提交
cd979e6b62
共有 1 个文件被更改,包括 12 次插入0 次删除
  1. 12 0
      MediaBrowser.Model/Configuration/ServerConfiguration.cs

+ 12 - 0
MediaBrowser.Model/Configuration/ServerConfiguration.cs

@@ -298,6 +298,18 @@ namespace MediaBrowser.Model.Configuration
         /// <value>The min resume duration seconds.</value>
         public int MinResumeDurationSeconds { get; set; } = 300;
 
+        /// <summary>
+        /// Gets or sets the minimum minutes of a book that must be played in order for playstate to be updated.
+        /// </summary>
+        /// <value>The min resume in minutes.</value>
+        public int MinAudiobookResume { get; set; } = 5;
+
+        /// <summary>
+        /// Gets or sets the remaining minutes of a book that can be played while still saving playstate. If this percentage is crossed playstate will be reset to the beginning and the item will be marked watched.
+        /// </summary>
+        /// <value>The remaining time in minutes.</value>
+        public int MaxAudiobookResume { get; set; } = 5;
+
         /// <summary>
         /// Gets or sets the delay in seconds that we will wait after a file system change to try and discover what has been added/removed
         /// Some delay is necessary with some items because their creation is not atomic.  It involves the creation of several