Browse Source

fix episode numbers in epg

pull/31/head
Jason Dove 6 years ago
parent
commit
5da91acfc8
  1. 1
      ErsatzTV.Core/Iptv/ChannelGuide.cs
  2. 4
      ErsatzTV.Infrastructure/Data/Repositories/ChannelRepository.cs

1
ErsatzTV.Core/Iptv/ChannelGuide.cs

@ -4,7 +4,6 @@ using System.Linq;
using System.Text; using System.Text;
using System.Xml; using System.Xml;
using ErsatzTV.Core.Domain; using ErsatzTV.Core.Domain;
using LanguageExt;
using static LanguageExt.Prelude; using static LanguageExt.Prelude;
namespace ErsatzTV.Core.Iptv namespace ErsatzTV.Core.Iptv

4
ErsatzTV.Infrastructure/Data/Repositories/ChannelRepository.cs

@ -51,6 +51,10 @@ namespace ErsatzTV.Infrastructure.Data.Repositories
.Include(c => c.Playouts) .Include(c => c.Playouts)
.ThenInclude(p => p.Items) .ThenInclude(p => p.Items)
.ThenInclude(i => i.MediaItem) .ThenInclude(i => i.MediaItem)
.ThenInclude(i => (i as Episode).Season)
.Include(c => c.Playouts)
.ThenInclude(p => p.Items)
.ThenInclude(i => i.MediaItem)
.ThenInclude(i => (i as Movie).MovieMetadata) .ThenInclude(i => (i as Movie).MovieMetadata)
.ToListAsync(); .ToListAsync();

Loading…
Cancel
Save