Kaynağa Gözat

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

Allow persons on books
Claus Vium 1 yıl önce
ebeveyn
işleme
0be2817ccb

+ 1 - 0
CONTRIBUTORS.md

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

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

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

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

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