소스 검색

Apply suggestions from code review

String interpolation is preferred.

Co-authored-by: Claus Vium <cvium@users.noreply.github.com>

Nyanmisaka 1 년 전
부모
커밋
98debe4817
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Jellyfin.Api/Controllers/DynamicHlsController.cs

+ 1 - 1
Jellyfin.Api/Controllers/DynamicHlsController.cs

@@ -1604,7 +1604,7 @@ public class DynamicHlsController : BaseJellyfinApiController
                 Path.GetFileNameWithoutExtension(outputPath));
                 Path.GetFileNameWithoutExtension(outputPath));
         }
         }
 
 
-        var hlsArguments = string.Format(CultureInfo.InvariantCulture, "-hls_playlist_type {0} -hls_list_size 0", isEventPlaylist ? "event" : "vod");
+        var hlsArguments = $"-hls_playlist_type {(isEventPlaylist ? "event" : "vod")} -hls_list_size 0"; 
 
 
         return string.Format(
         return string.Format(
             CultureInfo.InvariantCulture,
             CultureInfo.InvariantCulture,