aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Controllers/HlsSegmentController.cs
diff options
context:
space:
mode:
authorCody Robibero <cody@robibe.ro>2023-11-15 16:35:14 -0700
committerGitHub <noreply@github.com>2023-11-15 16:35:14 -0700
commit6d1abf67c36379f0b061095619147a3691841e21 (patch)
tree510a271453b8ff2b82cfd5676f2ec8ea76c233ad /Jellyfin.Api/Controllers/HlsSegmentController.cs
parent350df4a617d4c9f350ec0a356aedf7ec8944d155 (diff)
parent5fa1b8ac3a7e65f0972e4fc55e83172f66efd794 (diff)
Merge pull request #10463 from jellyfin/dotnet8
Update to .NET 8
Diffstat (limited to 'Jellyfin.Api/Controllers/HlsSegmentController.cs')
-rw-r--r--Jellyfin.Api/Controllers/HlsSegmentController.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Jellyfin.Api/Controllers/HlsSegmentController.cs b/Jellyfin.Api/Controllers/HlsSegmentController.cs
index 6eedfd8c7..392d9955f 100644
--- a/Jellyfin.Api/Controllers/HlsSegmentController.cs
+++ b/Jellyfin.Api/Controllers/HlsSegmentController.cs
@@ -160,7 +160,7 @@ public class HlsSegmentController : BaseJellyfinApiController
var pathExtension = Path.GetExtension(path);
if ((string.Equals(pathExtension, segmentContainer, StringComparison.OrdinalIgnoreCase)
|| string.Equals(pathExtension, ".m3u8", StringComparison.OrdinalIgnoreCase))
- && path.IndexOf(normalizedPlaylistId, StringComparison.OrdinalIgnoreCase) != -1)
+ && path.Contains(normalizedPlaylistId, StringComparison.OrdinalIgnoreCase))
{
playlistPath = path;
break;