aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Controllers/TrickplayController.cs
diff options
context:
space:
mode:
authorNick <20588554+nicknsy@users.noreply.github.com>2023-10-13 16:13:42 -0700
committerNick <20588554+nicknsy@users.noreply.github.com>2023-10-13 16:13:42 -0700
commitc7feea27fde8af60984c8fe41444dc245dbde395 (patch)
tree3ca2004b5f4d7d71855fa1c53e4cddfadcc9c886 /Jellyfin.Api/Controllers/TrickplayController.cs
parentf97e844c4fc2fb7626cc2e9fd706f9ce27d7c115 (diff)
Avoid unnecessary string -> byte[] conversion (Bond-009)
Diffstat (limited to 'Jellyfin.Api/Controllers/TrickplayController.cs')
-rw-r--r--Jellyfin.Api/Controllers/TrickplayController.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Jellyfin.Api/Controllers/TrickplayController.cs b/Jellyfin.Api/Controllers/TrickplayController.cs
index e4f8f076e..2dc960229 100644
--- a/Jellyfin.Api/Controllers/TrickplayController.cs
+++ b/Jellyfin.Api/Controllers/TrickplayController.cs
@@ -61,7 +61,7 @@ public class TrickplayController : BaseJellyfinApiController
return NotFound();
}
- return new FileContentResult(Encoding.UTF8.GetBytes(playlist), MimeTypes.GetMimeType("playlist.m3u8"));
+ return Content(playlist, MimeTypes.GetMimeType("playlist.m3u8"), Encoding.UTF8);
}
/// <summary>