Avoid unnecessary string -> byte[] conversion (Bond-009)

This commit is contained in:
Nick 2023-10-13 16:13:42 -07:00
parent f97e844c4f
commit c7feea27fd

View File

@ -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>