mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Use enum for BaseItemDto.ExtraType (#11261)
This commit is contained in:
parent
a45f2936e1
commit
84b933d835
@ -903,10 +903,7 @@ namespace Emby.Server.Implementations.Dto
|
|||||||
if (item is Audio audio)
|
if (item is Audio audio)
|
||||||
{
|
{
|
||||||
dto.Album = audio.Album;
|
dto.Album = audio.Album;
|
||||||
if (audio.ExtraType.HasValue)
|
dto.ExtraType = audio.ExtraType;
|
||||||
{
|
|
||||||
dto.ExtraType = audio.ExtraType.Value.ToString();
|
|
||||||
}
|
|
||||||
|
|
||||||
var albumParent = audio.AlbumEntity;
|
var albumParent = audio.AlbumEntity;
|
||||||
|
|
||||||
@ -1058,10 +1055,7 @@ namespace Emby.Server.Implementations.Dto
|
|||||||
dto.Trickplay = _trickplayManager.GetTrickplayManifest(item).GetAwaiter().GetResult();
|
dto.Trickplay = _trickplayManager.GetTrickplayManifest(item).GetAwaiter().GetResult();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (video.ExtraType.HasValue)
|
dto.ExtraType = video.ExtraType;
|
||||||
{
|
|
||||||
dto.ExtraType = video.ExtraType.Value.ToString();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (options.ContainsField(ItemFields.MediaStreams))
|
if (options.ContainsField(ItemFields.MediaStreams))
|
||||||
|
@ -65,7 +65,7 @@ namespace MediaBrowser.Model.Dto
|
|||||||
|
|
||||||
public DateTime? DateLastMediaAdded { get; set; }
|
public DateTime? DateLastMediaAdded { get; set; }
|
||||||
|
|
||||||
public string ExtraType { get; set; }
|
public ExtraType? ExtraType { get; set; }
|
||||||
|
|
||||||
public int? AirsBeforeSeasonNumber { get; set; }
|
public int? AirsBeforeSeasonNumber { get; set; }
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user