瀏覽代碼

Merge pull request #10371 from Pithaya/feat/book-persons

Allow persons on books
Claus Vium 1 年之前
父節點
當前提交
0be2817ccb
共有 3 個文件被更改,包括 10 次插入1 次删除
  1. 1 0
      CONTRIBUTORS.md
  2. 3 0
      MediaBrowser.Controller/Entities/Book.cs
  3. 6 1
      MediaBrowser.Model/Providers/ExternalIdMediaType.cs

+ 1 - 0
CONTRIBUTORS.md

@@ -172,6 +172,7 @@
  - [sleepycatcoding](https://github.com/sleepycatcoding)
  - [sleepycatcoding](https://github.com/sleepycatcoding)
  - [scampower3](https://github.com/scampower3)
  - [scampower3](https://github.com/scampower3)
  - [Chris-Codes-It] (https://github.com/Chris-Codes-It)
  - [Chris-Codes-It] (https://github.com/Chris-Codes-It)
+ - [Pithaya](https://github.com/Pithaya)
 
 
 # Emby Contributors
 # Emby Contributors
 
 

+ 3 - 0
MediaBrowser.Controller/Entities/Book.cs

@@ -24,6 +24,9 @@ namespace MediaBrowser.Controller.Entities
 
 
         public override bool SupportsPositionTicksResume => true;
         public override bool SupportsPositionTicksResume => true;
 
 
+        [JsonIgnore]
+        public override bool SupportsPeople => true;
+
         [JsonIgnore]
         [JsonIgnore]
         public string SeriesPresentationUniqueKey { get; set; }
         public string SeriesPresentationUniqueKey { get; set; }
 
 

+ 6 - 1
MediaBrowser.Model/Providers/ExternalIdMediaType.cs

@@ -66,6 +66,11 @@ namespace MediaBrowser.Model.Providers
         /// <summary>
         /// <summary>
         /// A music track.
         /// A music track.
         /// </summary>
         /// </summary>
-        Track = 12
+        Track = 12,
+
+        /// <summary>
+        /// A book.
+        /// </summary>
+        Book = 13
     }
     }
 }
 }