소스 검색

Merge pull request #11496 from davidfdezalcoba/davidfdezalcoba/workaround-tuner-head-method-501

Add Not Implemented response check to m3u tuner HEAD request
Niels van Velzen 1 년 전
부모
커밋
b25c6acb6b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/Jellyfin.LiveTv/TunerHosts/M3UTunerHost.cs

+ 1 - 1
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)
+                else if (response.StatusCode == HttpStatusCode.MethodNotAllowed || response.StatusCode == HttpStatusCode.NotImplemented)
                 {
                     // 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