aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaus Vium <cvium@users.noreply.github.com>2023-11-23 23:09:06 +0100
committerGitHub <noreply@github.com>2023-11-23 23:09:06 +0100
commit0be2817ccb5136746dc8e576d8ff05fb48ee5e29 (patch)
tree93fe04d8230d0ec790ea8dce669297a4ab3735b5
parentf19492c1de848642926b63b29ce78a65ca78f421 (diff)
parenteb2bcc91c5e8182bddf1ab5d6ee2a951da66e9c6 (diff)
Merge pull request #10371 from Pithaya/feat/book-persons
Allow persons on books
-rw-r--r--CONTRIBUTORS.md1
-rw-r--r--MediaBrowser.Controller/Entities/Book.cs3
-rw-r--r--MediaBrowser.Model/Providers/ExternalIdMediaType.cs7
3 files changed, 10 insertions, 1 deletions
diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md
index fff7136b8..571da95bb 100644
--- a/CONTRIBUTORS.md
+++ b/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
diff --git a/MediaBrowser.Controller/Entities/Book.cs b/MediaBrowser.Controller/Entities/Book.cs
index 63f9180fd..66dea1084 100644
--- a/MediaBrowser.Controller/Entities/Book.cs
+++ b/MediaBrowser.Controller/Entities/Book.cs
@@ -25,6 +25,9 @@ namespace MediaBrowser.Controller.Entities
public override bool SupportsPositionTicksResume => true;
[JsonIgnore]
+ public override bool SupportsPeople => true;
+
+ [JsonIgnore]
public string SeriesPresentationUniqueKey { get; set; }
[JsonIgnore]
diff --git a/MediaBrowser.Model/Providers/ExternalIdMediaType.cs b/MediaBrowser.Model/Providers/ExternalIdMediaType.cs
index 5303c8f58..ef518369c 100644
--- a/MediaBrowser.Model/Providers/ExternalIdMediaType.cs
+++ b/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
}
}