diff --git a/ErsatzTV.Application/Channels/Mapper.cs b/ErsatzTV.Application/Channels/Mapper.cs
index bbe5a8c78..558f9f061 100644
--- a/ErsatzTV.Application/Channels/Mapper.cs
+++ b/ErsatzTV.Application/Channels/Mapper.cs
@@ -38,6 +38,41 @@ internal static class Mapper
channel.IsEnabled,
channel.ShowInEpg);
+ internal static ChannelDetailResponseModel ProjectToDetailResponseModel(Channel channel, int playoutCount)
+ {
+ ArtworkContentTypeModel logo = GetLogo(channel);
+ return new ChannelDetailResponseModel(
+ channel.Id,
+ channel.Number,
+ channel.Name,
+ channel.Group,
+ channel.Categories,
+ channel.FFmpegProfileId,
+ channel.SlugSeconds,
+ new ChannelLogoResponseModel(logo.Path, logo.ContentType),
+ channel.StreamSelectorMode,
+ channel.StreamSelector,
+ channel.PreferredAudioLanguageCode,
+ channel.PreferredAudioTitle,
+ channel.PlayoutSource,
+ channel.PlayoutMode,
+ channel.MirrorSourceChannelId,
+ channel.PlayoutOffset,
+ channel.StreamingMode,
+ channel.WatermarkId,
+ channel.FallbackFillerId,
+ playoutCount,
+ channel.PreferredSubtitleLanguageCode,
+ channel.SubtitleMode,
+ channel.MusicVideoCreditsMode,
+ channel.MusicVideoCreditsTemplate,
+ channel.SongVideoMode,
+ channel.TranscodeMode,
+ channel.IdleBehavior,
+ channel.IsEnabled,
+ channel.ShowInEpg);
+ }
+
internal static ChannelResponseModel ProjectToResponseModel(Channel channel) =>
new(
channel.Id,
diff --git a/ErsatzTV.Application/Channels/Queries/GetChannelByIdForApi.cs b/ErsatzTV.Application/Channels/Queries/GetChannelByIdForApi.cs
index bc527dde3..adf640e2b 100644
--- a/ErsatzTV.Application/Channels/Queries/GetChannelByIdForApi.cs
+++ b/ErsatzTV.Application/Channels/Queries/GetChannelByIdForApi.cs
@@ -2,4 +2,4 @@ using ErsatzTV.Core.Api.Channels;
namespace ErsatzTV.Application.Channels;
-public record GetChannelByIdForApi(int Id) : IRequest