mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Always fallback for failed HEAD request (#11668)
This commit is contained in:
parent
c1615419b9
commit
8aee50020b
@ -123,7 +123,7 @@ namespace Jellyfin.LiveTv.TunerHosts
|
|||||||
return new SharedHttpStream(mediaSource, tunerHost, streamId, FileSystem, _httpClientFactory, Logger, Config, _appHost, _streamHelper);
|
return new SharedHttpStream(mediaSource, tunerHost, streamId, FileSystem, _httpClientFactory, Logger, Config, _appHost, _streamHelper);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (response.StatusCode == HttpStatusCode.MethodNotAllowed || response.StatusCode == HttpStatusCode.NotImplemented)
|
else
|
||||||
{
|
{
|
||||||
// Fallback to check path extension when the server does not support HEAD method
|
// Fallback to check path extension when the server does not support HEAD method
|
||||||
// Use UriBuilder to remove all query string as GetExtension will include them when used directly
|
// Use UriBuilder to remove all query string as GetExtension will include them when used directly
|
||||||
@ -133,10 +133,6 @@ namespace Jellyfin.LiveTv.TunerHosts
|
|||||||
return new SharedHttpStream(mediaSource, tunerHost, streamId, FileSystem, _httpClientFactory, Logger, Config, _appHost, _streamHelper);
|
return new SharedHttpStream(mediaSource, tunerHost, streamId, FileSystem, _httpClientFactory, Logger, Config, _appHost, _streamHelper);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
response.EnsureSuccessStatusCode();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return new LiveStream(mediaSource, tunerHost, FileSystem, Logger, Config, _streamHelper);
|
return new LiveStream(mediaSource, tunerHost, FileSystem, Logger, Config, _streamHelper);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user