From c71385d2db27f05e59dd8e2e6e2d12648655e5cc Mon Sep 17 00:00:00 2001 From: Anthony Lavado Date: Sat, 22 Oct 2022 04:30:45 -0400 Subject: [PATCH] Add token for program metadata download --- Emby.Server.Implementations/LiveTv/Listings/SchedulesDirect.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Emby.Server.Implementations/LiveTv/Listings/SchedulesDirect.cs b/Emby.Server.Implementations/LiveTv/Listings/SchedulesDirect.cs index 561cb8cf00..888294acb5 100644 --- a/Emby.Server.Implementations/LiveTv/Listings/SchedulesDirect.cs +++ b/Emby.Server.Implementations/LiveTv/Listings/SchedulesDirect.cs @@ -457,6 +457,8 @@ namespace Emby.Server.Implementations.LiveTv.Listings IReadOnlyList programIds, CancellationToken cancellationToken) { + var token = await GetToken(info, cancellationToken).ConfigureAwait(false); + if (programIds.Count == 0) { return Array.Empty(); @@ -478,6 +480,7 @@ namespace Emby.Server.Implementations.LiveTv.Listings { Content = new StringContent(str.ToString(), Encoding.UTF8, MediaTypeNames.Application.Json) }; + message.Headers.TryAddWithoutValidation("token", token); try {