diff options
| author | Claus Vium <cvium@users.noreply.github.com> | 2020-12-08 18:22:18 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-08 18:22:18 +0100 |
| commit | b6ecaccf92ae9ca9b0cc75e6dd666a896e72aa99 (patch) | |
| tree | e6facbd6789b2099bfc5800604fa5bce6ca3f900 /Emby.Server.Implementations | |
| parent | 94d805d03d93764365c5b63e23f239d47d23ad0a (diff) | |
| parent | 8517b28eba8c96f8b695a8137c7f9f0d22212400 (diff) | |
Merge pull request #4730 from crobibero/base-item-dto-guid-nullable
Don't serialize empty GUID to null
Diffstat (limited to 'Emby.Server.Implementations')
| -rw-r--r-- | Emby.Server.Implementations/LiveTv/LiveTvManager.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Emby.Server.Implementations/LiveTv/LiveTvManager.cs b/Emby.Server.Implementations/LiveTv/LiveTvManager.cs index 8c9bb6ba0..7842be716 100644 --- a/Emby.Server.Implementations/LiveTv/LiveTvManager.cs +++ b/Emby.Server.Implementations/LiveTv/LiveTvManager.cs @@ -1928,7 +1928,7 @@ namespace Emby.Server.Implementations.LiveTv foreach (var programDto in currentProgramDtos) { - if (currentChannelsDict.TryGetValue(programDto.ChannelId, out BaseItemDto channelDto)) + if (programDto.ChannelId.HasValue && currentChannelsDict.TryGetValue(programDto.ChannelId.Value, out BaseItemDto channelDto)) { channelDto.CurrentProgram = programDto; } @@ -2018,7 +2018,7 @@ namespace Emby.Server.Implementations.LiveTv info.DayPattern = _tvDtoService.GetDayPattern(info.Days); info.Name = program.Name; - info.ChannelId = programDto.ChannelId; + info.ChannelId = programDto.ChannelId ?? Guid.Empty; info.ChannelName = programDto.ChannelName; info.StartDate = program.StartDate; info.Name = program.Name; |
