Fix styling for string builder

pull/9554/head
Nick 2 years ago
parent 98e41d5a14
commit d338253242

@ -113,12 +113,14 @@ public class TrickplayController : BaseJellyfinApiController
var infDuration = tileDuration * tilesPerGrid; var infDuration = tileDuration * tilesPerGrid;
var tileGridCount = (int)Math.Ceiling((decimal)tilesInfo.TileCount / tilesPerGrid); var tileGridCount = (int)Math.Ceiling((decimal)tilesInfo.TileCount / tilesPerGrid);
builder.AppendLine("#EXTM3U"); builder
builder.Append("#EXT-X-TARGETDURATION:").AppendLine(tileGridCount.ToString(CultureInfo.InvariantCulture)); .AppendLine("#EXTM3U")
builder.AppendLine("#EXT-X-VERSION:7"); .Append("#EXT-X-TARGETDURATION:")
builder.AppendLine("#EXT-X-MEDIA-SEQUENCE:1"); .AppendLine(tileGridCount.ToString(CultureInfo.InvariantCulture))
builder.AppendLine("#EXT-X-PLAYLIST-TYPE:VOD"); .AppendLine("#EXT-X-VERSION:7")
builder.AppendLine("#EXT-X-IMAGES-ONLY"); .AppendLine("#EXT-X-MEDIA-SEQUENCE:1")
.AppendLine("#EXT-X-PLAYLIST-TYPE:VOD")
.AppendLine("#EXT-X-IMAGES-ONLY");
for (int i = 0; i < tileGridCount; i++) for (int i = 0; i < tileGridCount; i++)
{ {

Loading…
Cancel
Save