mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-01-23 23:20:51 +01:00
Use GetAsync to get headers for stream type check
This commit is contained in:
parent
b5d89a67e8
commit
b6e37d2d74
1 changed files with 1 additions and 2 deletions
|
|
@ -102,9 +102,8 @@ namespace Jellyfin.LiveTv.TunerHosts
|
|||
{
|
||||
try
|
||||
{
|
||||
using var message = new HttpRequestMessage(HttpMethod.Head, mediaSource.Path);
|
||||
using var response = await _httpClientFactory.CreateClient(NamedClient.Default)
|
||||
.SendAsync(message, cancellationToken)
|
||||
.GetAsync(mediaSource.Path, HttpCompletionOption.ResponseHeadersRead, cancellationToken)
|
||||
.ConfigureAwait(false);
|
||||
|
||||
if (response.IsSuccessStatusCode)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue