|
|
|
@ -47,6 +47,9 @@ namespace ErsatzTV.Application.MediaCards.Queries |
|
|
|
.ThenInclude(i => (i as Movie).MovieMetadata) |
|
|
|
.ThenInclude(i => (i as Movie).MovieMetadata) |
|
|
|
.ThenInclude(mm => mm.Artwork) |
|
|
|
.ThenInclude(mm => mm.Artwork) |
|
|
|
.Include(c => c.MediaItems) |
|
|
|
.Include(c => c.MediaItems) |
|
|
|
|
|
|
|
.ThenInclude(i => (i as Movie).MediaVersions) |
|
|
|
|
|
|
|
.ThenInclude(mv => mv.MediaFiles) |
|
|
|
|
|
|
|
.Include(c => c.MediaItems) |
|
|
|
.ThenInclude(i => (i as Artist).ArtistMetadata) |
|
|
|
.ThenInclude(i => (i as Artist).ArtistMetadata) |
|
|
|
.ThenInclude(mvm => mvm.Artwork) |
|
|
|
.ThenInclude(mvm => mvm.Artwork) |
|
|
|
.Include(c => c.MediaItems) |
|
|
|
.Include(c => c.MediaItems) |
|
|
|
@ -56,6 +59,9 @@ namespace ErsatzTV.Application.MediaCards.Queries |
|
|
|
.ThenInclude(i => (i as MusicVideo).Artist) |
|
|
|
.ThenInclude(i => (i as MusicVideo).Artist) |
|
|
|
.ThenInclude(a => a.ArtistMetadata) |
|
|
|
.ThenInclude(a => a.ArtistMetadata) |
|
|
|
.Include(c => c.MediaItems) |
|
|
|
.Include(c => c.MediaItems) |
|
|
|
|
|
|
|
.ThenInclude(i => (i as MusicVideo).MediaVersions) |
|
|
|
|
|
|
|
.ThenInclude(mv => mv.MediaFiles) |
|
|
|
|
|
|
|
.Include(c => c.MediaItems) |
|
|
|
.ThenInclude(i => (i as Show).ShowMetadata) |
|
|
|
.ThenInclude(i => (i as Show).ShowMetadata) |
|
|
|
.ThenInclude(sm => sm.Artwork) |
|
|
|
.ThenInclude(sm => sm.Artwork) |
|
|
|
.Include(c => c.MediaItems) |
|
|
|
.Include(c => c.MediaItems) |
|
|
|
@ -81,11 +87,20 @@ namespace ErsatzTV.Application.MediaCards.Queries |
|
|
|
.ThenInclude(i => (i as Episode).Season) |
|
|
|
.ThenInclude(i => (i as Episode).Season) |
|
|
|
.ThenInclude(s => s.SeasonMetadata) |
|
|
|
.ThenInclude(s => s.SeasonMetadata) |
|
|
|
.Include(c => c.MediaItems) |
|
|
|
.Include(c => c.MediaItems) |
|
|
|
|
|
|
|
.ThenInclude(i => (i as Episode).MediaVersions) |
|
|
|
|
|
|
|
.ThenInclude(mv => mv.MediaFiles) |
|
|
|
|
|
|
|
.Include(c => c.MediaItems) |
|
|
|
.ThenInclude(i => (i as OtherVideo).OtherVideoMetadata) |
|
|
|
.ThenInclude(i => (i as OtherVideo).OtherVideoMetadata) |
|
|
|
.ThenInclude(ovm => ovm.Artwork) |
|
|
|
.ThenInclude(ovm => ovm.Artwork) |
|
|
|
.Include(c => c.MediaItems) |
|
|
|
.Include(c => c.MediaItems) |
|
|
|
|
|
|
|
.ThenInclude(i => (i as OtherVideo).MediaVersions) |
|
|
|
|
|
|
|
.ThenInclude(mv => mv.MediaFiles) |
|
|
|
|
|
|
|
.Include(c => c.MediaItems) |
|
|
|
.ThenInclude(i => (i as Song).SongMetadata) |
|
|
|
.ThenInclude(i => (i as Song).SongMetadata) |
|
|
|
.ThenInclude(ovm => ovm.Artwork) |
|
|
|
.ThenInclude(ovm => ovm.Artwork) |
|
|
|
|
|
|
|
.Include(c => c.MediaItems) |
|
|
|
|
|
|
|
.ThenInclude(i => (i as Song).MediaVersions) |
|
|
|
|
|
|
|
.ThenInclude(mv => mv.MediaFiles) |
|
|
|
.SelectOneAsync(c => c.Id, c => c.Id == request.Id) |
|
|
|
.SelectOneAsync(c => c.Id, c => c.Id == request.Id) |
|
|
|
.Map(c => c.ToEither(BaseError.New("Unable to load collection"))) |
|
|
|
.Map(c => c.ToEither(BaseError.New("Unable to load collection"))) |
|
|
|
.MapT(c => ProjectToViewModel(c, maybeJellyfin, maybeEmby)); |
|
|
|
.MapT(c => ProjectToViewModel(c, maybeJellyfin, maybeEmby)); |
|
|
|
|