mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-05 21:37:10 -04:00
fix parsing of guide data
This commit is contained in:
parent
e441e2f53d
commit
1b690677e9
@ -358,14 +358,19 @@ 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)
|
||||||
if (gracenote != null)
|
|
||||||
{
|
{
|
||||||
info.SeasonNumber = gracenote.season;
|
var gracenote = metadataProgram.Gracenote;
|
||||||
|
if (gracenote != null)
|
||||||
if (gracenote.episode > 0)
|
|
||||||
{
|
{
|
||||||
info.EpisodeNumber = gracenote.episode;
|
info.SeasonNumber = gracenote.season;
|
||||||
|
|
||||||
|
if (gracenote.episode > 0)
|
||||||
|
{
|
||||||
|
info.EpisodeNumber = gracenote.episode;
|
||||||
|
}
|
||||||
|
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user