aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgnattu <gnattu@users.noreply.github.com>2024-05-17 13:51:46 -0400
committerJoshua M. Boniface <joshua@boniface.me>2024-05-17 13:51:46 -0400
commite109e5494985a82e56a821037bd7f6bb6eac6272 (patch)
treeb1448171bc2034e7143be1d50192b559ebc65428
parent8139179780f07891cd0d47cedf912ce107156c77 (diff)
Backport pull request #11668 from jellyfin/release-10.9.z
Always fallback for failed HEAD request Original-merge: 8aee50020b42c90ef664249b03dc9bc374c7624e Merged-by: crobibero <cody@robibe.ro> Backported-by: Joshua M. Boniface <joshua@boniface.me>
-rw-r--r--src/Jellyfin.LiveTv/TunerHosts/M3UTunerHost.cs6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/Jellyfin.LiveTv/TunerHosts/M3UTunerHost.cs b/src/Jellyfin.LiveTv/TunerHosts/M3UTunerHost.cs
index b78b60c70..97090e442 100644
--- a/src/Jellyfin.LiveTv/TunerHosts/M3UTunerHost.cs
+++ b/src/Jellyfin.LiveTv/TunerHosts/M3UTunerHost.cs
@@ -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);