Use enum for BaseItemDto.ExtraType (#11261)

pull/11272/head
Niels van Velzen 1 month ago committed by GitHub
parent a45f2936e1
commit 84b933d835
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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))

@ -65,7 +65,7 @@ namespace MediaBrowser.Model.Dto
public DateTime? DateLastMediaAdded { get; set; }
public string ExtraType { get; set; }
public ExtraType? ExtraType { get; set; }
public int? AirsBeforeSeasonNumber { get; set; }

Loading…
Cancel
Save