fix parsing of guide data

This commit is contained in:
Luke Pulverenti 2017-08-24 15:52:48 -04:00
parent e441e2f53d
commit 1b690677e9

View File

@ -358,7 +358,9 @@ namespace Emby.Server.Implementations.LiveTv.Listings
if (details.metadata != null) if (details.metadata != null)
{ {
var gracenote = details.metadata.Find(x => x.Gracenote != null).Gracenote; foreach (var metadataProgram in details.metadata)
{
var gracenote = metadataProgram.Gracenote;
if (gracenote != null) if (gracenote != null)
{ {
info.SeasonNumber = gracenote.season; info.SeasonNumber = gracenote.season;
@ -367,6 +369,9 @@ namespace Emby.Server.Implementations.LiveTv.Listings
{ {
info.EpisodeNumber = gracenote.episode; info.EpisodeNumber = gracenote.episode;
} }
break;
}
} }
} }
} }