aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2022-01-22 17:08:02 +0100
committerGitHub <noreply@github.com>2022-01-22 17:08:02 +0100
commit4f1eed862ed7c486f58d4ee3846f2def77359a87 (patch)
treee3a6833912000e1dd9d2060fe0e83ef51225cd94
parentcd675475bc5f37d4b20ed71271b17d0945b3f969 (diff)
parente86f778c05d5eebaf85f2d0e25ba4783fe713d1f (diff)
Merge pull request #7234 from nielsvanvelzen/baseitemperson-guid
-rw-r--r--Emby.Server.Implementations/Dto/DtoService.cs2
-rw-r--r--MediaBrowser.Model/Dto/BaseItemPerson.cs3
2 files changed, 3 insertions, 2 deletions
diff --git a/Emby.Server.Implementations/Dto/DtoService.cs b/Emby.Server.Implementations/Dto/DtoService.cs
index 88d9303a5..4ed7c40be 100644
--- a/Emby.Server.Implementations/Dto/DtoService.cs
+++ b/Emby.Server.Implementations/Dto/DtoService.cs
@@ -584,7 +584,7 @@ namespace Emby.Server.Implementations.Dto
if (dictionary.TryGetValue(person.Name, out Person entity))
{
baseItemPerson.PrimaryImageTag = GetTagAndFillBlurhash(dto, entity, ImageType.Primary);
- baseItemPerson.Id = entity.Id.ToString("N", CultureInfo.InvariantCulture);
+ baseItemPerson.Id = entity.Id;
if (dto.ImageBlurHashes != null)
{
// Only add BlurHash for the person's image.
diff --git a/MediaBrowser.Model/Dto/BaseItemPerson.cs b/MediaBrowser.Model/Dto/BaseItemPerson.cs
index ddd7667ef..6b920b0ef 100644
--- a/MediaBrowser.Model/Dto/BaseItemPerson.cs
+++ b/MediaBrowser.Model/Dto/BaseItemPerson.cs
@@ -1,4 +1,5 @@
#nullable disable
+using System;
using System.Collections.Generic;
using System.Text.Json.Serialization;
using MediaBrowser.Model.Entities;
@@ -20,7 +21,7 @@ namespace MediaBrowser.Model.Dto
/// Gets or sets the identifier.
/// </summary>
/// <value>The identifier.</value>
- public string Id { get; set; }
+ public Guid Id { get; set; }
/// <summary>
/// Gets or sets the role.