update handling of new programs for xml tv

This commit is contained in:
Luke Pulverenti
2017-03-14 15:44:35 -04:00
parent 8d72c7e881
commit 296e5bfe32
2 changed files with 13 additions and 2 deletions

View File

@@ -205,6 +205,15 @@ namespace Emby.Server.Implementations.LiveTv.Listings
}
programInfo.ShowId = uniqueString.GetMD5().ToString("N");
// If we don't have valid episode info, assume it's a unique program, otherwise recordings might be skipped
if (programInfo.IsSeries && !programInfo.IsRepeat)
{
if ((programInfo.EpisodeNumber ?? 0) == 0)
{
programInfo.ShowId = programInfo.ShowId + programInfo.StartDate.Ticks.ToString(CultureInfo.InvariantCulture);
}
}
}
// Construct an id from the channel and start date