diff options
| author | Nick <20588554+nicknsy@users.noreply.github.com> | 2023-08-16 21:31:34 -0700 |
|---|---|---|
| committer | Nick <20588554+nicknsy@users.noreply.github.com> | 2023-08-16 21:31:34 -0700 |
| commit | 65b269c151e083a7ed30b010a470e1fc63765904 (patch) | |
| tree | 7adc71abbb254d79acfe04bb573e021e5851e4b6 /Jellyfin.Api/Helpers/DynamicHlsHelper.cs | |
| parent | 0e1ae2def24dd623d7edb765f4f9b92567d862e3 (diff) | |
Minor code formatting (cvium)
Diffstat (limited to 'Jellyfin.Api/Helpers/DynamicHlsHelper.cs')
| -rw-r--r-- | Jellyfin.Api/Helpers/DynamicHlsHelper.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Jellyfin.Api/Helpers/DynamicHlsHelper.cs b/Jellyfin.Api/Helpers/DynamicHlsHelper.cs index 45e0d475d..9b0b65b10 100644 --- a/Jellyfin.Api/Helpers/DynamicHlsHelper.cs +++ b/Jellyfin.Api/Helpers/DynamicHlsHelper.cs @@ -307,7 +307,7 @@ public class DynamicHlsHelper AppendPlaylist(builder, state, variantUrl, newBitrate, subtitleGroup); } - if (!isLiveStream && (state.VideoRequest?.EnableTrickplay).GetValueOrDefault(false)) + if (!isLiveStream && (state.VideoRequest?.EnableTrickplay ?? false)) { var sourceId = Guid.Parse(state.Request.MediaSourceId); var trickplayResolutions = await _trickplayManager.GetTrickplayResolutions(sourceId).ConfigureAwait(false); @@ -565,7 +565,7 @@ public class DynamicHlsHelper state.Request.MediaSourceId, user.GetToken()); - var line = string.Format( + builder.AppendFormat( CultureInfo.InvariantCulture, playlistFormat, trickplayInfo.Bandwidth.ToString(CultureInfo.InvariantCulture), @@ -573,7 +573,7 @@ public class DynamicHlsHelper trickplayInfo.Height.ToString(CultureInfo.InvariantCulture), url); - builder.AppendLine(line); + builder.AppendLine(); } } |
