update xml tv show id

This commit is contained in:
Luke Pulverenti 2017-01-31 16:25:42 -05:00
parent 45398959d7
commit fcdd8cf899

View File

@ -161,7 +161,14 @@ namespace Emby.Server.Implementations.LiveTv.Listings
}
else
{
programInfo.ShowId = ((p.Title ?? string.Empty) + (episodeTitle ?? string.Empty)).GetMD5().ToString("N");
var uniqueString = (p.Title ?? string.Empty) + (episodeTitle ?? string.Empty);
if (programInfo.EpisodeNumber.HasValue)
{
uniqueString = "-" + programInfo.EpisodeNumber.Value.ToString(CultureInfo.InvariantCulture);
}
programInfo.ShowId = uniqueString.GetMD5().ToString("N");
}
if (programInfo.IsMovie)