aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Dto
diff options
context:
space:
mode:
authorNiels van Velzen <nielsvanvelzen@users.noreply.github.com>2024-03-31 22:48:46 +0200
committerGitHub <noreply@github.com>2024-03-31 14:48:46 -0600
commit84b933d8355c718d3674f3b7371a190849071970 (patch)
tree974d90f2140333a57fa64be6fb69ba71042d4587 /Emby.Server.Implementations/Dto
parenta45f2936e1912d9df7144e150833cd5853a04c09 (diff)
Use enum for BaseItemDto.ExtraType (#11261)
Diffstat (limited to 'Emby.Server.Implementations/Dto')
-rw-r--r--Emby.Server.Implementations/Dto/DtoService.cs10
1 files changed, 2 insertions, 8 deletions
diff --git a/Emby.Server.Implementations/Dto/DtoService.cs b/Emby.Server.Implementations/Dto/DtoService.cs
index 7812687ea..5da9bea26 100644
--- a/Emby.Server.Implementations/Dto/DtoService.cs
+++ b/Emby.Server.Implementations/Dto/DtoService.cs
@@ -903,10 +903,7 @@ namespace Emby.Server.Implementations.Dto
if (item is Audio audio)
{
dto.Album = audio.Album;
- if (audio.ExtraType.HasValue)
- {
- dto.ExtraType = audio.ExtraType.Value.ToString();
- }
+ dto.ExtraType = audio.ExtraType;
var albumParent = audio.AlbumEntity;
@@ -1058,10 +1055,7 @@ namespace Emby.Server.Implementations.Dto
dto.Trickplay = _trickplayManager.GetTrickplayManifest(item).GetAwaiter().GetResult();
}
- if (video.ExtraType.HasValue)
- {
- dto.ExtraType = video.ExtraType.Value.ToString();
- }
+ dto.ExtraType = video.ExtraType;
}
if (options.ContainsField(ItemFields.MediaStreams))