mirror of
https://github.com/jellyfin/jellyfin
synced 2024-09-06 08:04:44 +00:00
Backport pull request #11668 from jellyfin/release-10.9.z
Always fallback for failed HEAD request
Original-merge: 8aee50020b
Merged-by: crobibero <cody@robibe.ro>
Backported-by: Joshua M. Boniface <joshua@boniface.me>
This commit is contained in:
parent
8139179780
commit
e109e54949
|
@ -123,7 +123,7 @@ namespace Jellyfin.LiveTv.TunerHosts
|
|||
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
|
||||
// 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);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
response.EnsureSuccessStatusCode();
|
||||
}
|
||||
}
|
||||
|
||||
return new LiveStream(mediaSource, tunerHost, FileSystem, Logger, Config, _streamHelper);
|
||||
|
|
Loading…
Reference in a new issue