diff options
| author | Anthony Lavado <anthony@lavado.ca> | 2020-09-07 19:41:58 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-07 19:41:58 -0400 |
| commit | cd40688584a851ae7595d69f596ec0d06968f4e8 (patch) | |
| tree | 9ad56df45309e44b92f12025264b8eda4980d8e2 /Emby.Server.Implementations | |
| parent | d08ddbb8d29d3b7595c4309ad30a9ab5a0767bb1 (diff) | |
| parent | 384ab39f5b3dfb940cb9f612f5b64541c9ec935b (diff) | |
Merge pull request #4076 from Bond-009/warn29
Fix some warnings
Diffstat (limited to 'Emby.Server.Implementations')
| -rw-r--r-- | Emby.Server.Implementations/LiveTv/Listings/SchedulesDirect.cs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Emby.Server.Implementations/LiveTv/Listings/SchedulesDirect.cs b/Emby.Server.Implementations/LiveTv/Listings/SchedulesDirect.cs index f9ae55af8..655ff5853 100644 --- a/Emby.Server.Implementations/LiveTv/Listings/SchedulesDirect.cs +++ b/Emby.Server.Implementations/LiveTv/Listings/SchedulesDirect.cs @@ -468,13 +468,15 @@ namespace Emby.Server.Implementations.LiveTv.Listings imageIdString = imageIdString.TrimEnd(',') + "]"; - using var message = new HttpRequestMessage(HttpMethod.Post, ApiUrl + "/metadata/programs"); - message.Content = new StringContent(imageIdString, Encoding.UTF8, MediaTypeNames.Application.Json); + using var message = new HttpRequestMessage(HttpMethod.Post, ApiUrl + "/metadata/programs") + { + Content = new StringContent(imageIdString, Encoding.UTF8, MediaTypeNames.Application.Json) + }; try { using var innerResponse2 = await Send(message, true, info, cancellationToken).ConfigureAwait(false); - await using var response = await innerResponse2.Content.ReadAsStreamAsync(); + await using var response = await innerResponse2.Content.ReadAsStreamAsync().ConfigureAwait(false); return await _jsonSerializer.DeserializeFromStreamAsync<List<ScheduleDirect.ShowImages>>( response).ConfigureAwait(false); } |
