Merge pull request #12398 from bpauquette/patch-5

Update XmlTvListingsProvider.cs to fix the record series button missing on many programs
This commit is contained in:
Bond-009 2024-08-20 13:43:16 +02:00 committed by GitHub
commit 567adb8caa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -167,7 +167,7 @@ namespace Jellyfin.LiveTv.Listings
Overview = program.Description, Overview = program.Description,
ProductionYear = program.CopyrightDate?.Year, ProductionYear = program.CopyrightDate?.Year,
SeasonNumber = program.Episode.Series, SeasonNumber = program.Episode.Series,
IsSeries = program.Episode.Series is not null, IsSeries = program.Episode.Episode is not null,
IsRepeat = program.IsPreviouslyShown && !program.IsNew, IsRepeat = program.IsPreviouslyShown && !program.IsNew,
IsPremiere = program.Premiere is not null, IsPremiere = program.Premiere is not null,
IsKids = programCategories.Any(c => info.KidsCategories.Contains(c, StringComparison.OrdinalIgnoreCase)), IsKids = programCategories.Any(c => info.KidsCategories.Contains(c, StringComparison.OrdinalIgnoreCase)),