aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Controllers/TrickplayController.cs
diff options
context:
space:
mode:
authorNick <20588554+nicknsy@users.noreply.github.com>2023-05-18 00:11:08 -0700
committerNick <20588554+nicknsy@users.noreply.github.com>2023-06-22 16:23:52 -0700
commitd338253242f3b7996e735b94eacfa9d67ed0913a (patch)
treeb03c9e16b14185b6f2bae741de427aa1fbdae9f3 /Jellyfin.Api/Controllers/TrickplayController.cs
parent98e41d5a14a579113f354ae3cb32a9ff6bc41958 (diff)
Fix styling for string builder
Diffstat (limited to 'Jellyfin.Api/Controllers/TrickplayController.cs')
-rw-r--r--Jellyfin.Api/Controllers/TrickplayController.cs14
1 files changed, 8 insertions, 6 deletions
diff --git a/Jellyfin.Api/Controllers/TrickplayController.cs b/Jellyfin.Api/Controllers/TrickplayController.cs
index 6dee02342..e9ec6a6f4 100644
--- a/Jellyfin.Api/Controllers/TrickplayController.cs
+++ b/Jellyfin.Api/Controllers/TrickplayController.cs
@@ -113,12 +113,14 @@ public class TrickplayController : BaseJellyfinApiController
var infDuration = tileDuration * tilesPerGrid;
var tileGridCount = (int)Math.Ceiling((decimal)tilesInfo.TileCount / tilesPerGrid);
- builder.AppendLine("#EXTM3U");
- builder.Append("#EXT-X-TARGETDURATION:").AppendLine(tileGridCount.ToString(CultureInfo.InvariantCulture));
- builder.AppendLine("#EXT-X-VERSION:7");
- builder.AppendLine("#EXT-X-MEDIA-SEQUENCE:1");
- builder.AppendLine("#EXT-X-PLAYLIST-TYPE:VOD");
- builder.AppendLine("#EXT-X-IMAGES-ONLY");
+ builder
+ .AppendLine("#EXTM3U")
+ .Append("#EXT-X-TARGETDURATION:")
+ .AppendLine(tileGridCount.ToString(CultureInfo.InvariantCulture))
+ .AppendLine("#EXT-X-VERSION:7")
+ .AppendLine("#EXT-X-MEDIA-SEQUENCE:1")
+ .AppendLine("#EXT-X-PLAYLIST-TYPE:VOD")
+ .AppendLine("#EXT-X-IMAGES-ONLY");
for (int i = 0; i < tileGridCount; i++)
{