aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Helpers
diff options
context:
space:
mode:
authorClaus Vium <cvium@users.noreply.github.com>2021-09-20 09:43:04 +0200
committerGitHub <noreply@github.com>2021-09-20 09:43:04 +0200
commitb51a3cbf98b5f04374e8854745bb8eeb97c1ea3a (patch)
tree6fa4a14847320f730342727a2bfc7b553f2e7e12 /Jellyfin.Api/Helpers
parenta3a8e058bc2f6249b6a17e277cc4e0cf98240ef4 (diff)
parent9148820d89ff58b53c8fa6d8ced33c025187dd12 (diff)
Merge pull request #6567 from Bond-009/alloc
Diffstat (limited to 'Jellyfin.Api/Helpers')
-rw-r--r--Jellyfin.Api/Helpers/StreamingHelpers.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Jellyfin.Api/Helpers/StreamingHelpers.cs b/Jellyfin.Api/Helpers/StreamingHelpers.cs
index 0041251e3..4fc791665 100644
--- a/Jellyfin.Api/Helpers/StreamingHelpers.cs
+++ b/Jellyfin.Api/Helpers/StreamingHelpers.cs
@@ -6,6 +6,7 @@ using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Jellyfin.Api.Models.StreamingDtos;
+using Jellyfin.Extensions;
using MediaBrowser.Common.Configuration;
using MediaBrowser.Common.Extensions;
using MediaBrowser.Controller.Configuration;
@@ -81,7 +82,7 @@ namespace Jellyfin.Api.Helpers
throw new ResourceNotFoundException(nameof(httpRequest.Path));
}
- var url = httpRequest.Path.Value.Split('.')[^1];
+ var url = httpRequest.Path.Value.AsSpan().RightPart('.').ToString();
if (string.IsNullOrEmpty(streamingRequest.AudioCodec))
{