diff options
| author | nyanmisaka <nst799610810@gmail.com> | 2020-08-20 15:17:42 +0800 |
|---|---|---|
| committer | nyanmisaka <nst799610810@gmail.com> | 2020-08-20 15:17:42 +0800 |
| commit | dd3b48f2039fe299a55db437190a9e0d5c78145c (patch) | |
| tree | 0979cf5e5e3902c8a56331a70d71bfb3fbe7dc36 /Jellyfin.Api/Controllers/SubtitleController.cs | |
| parent | 16658c92fe1baeb23909001525008208cfc82f75 (diff) | |
fix lint
Diffstat (limited to 'Jellyfin.Api/Controllers/SubtitleController.cs')
| -rw-r--r-- | Jellyfin.Api/Controllers/SubtitleController.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Jellyfin.Api/Controllers/SubtitleController.cs b/Jellyfin.Api/Controllers/SubtitleController.cs index 6c9d1beec..912de0fd6 100644 --- a/Jellyfin.Api/Controllers/SubtitleController.cs +++ b/Jellyfin.Api/Controllers/SubtitleController.cs @@ -393,6 +393,7 @@ namespace Jellyfin.Api.Controllers _logger.LogWarning("Some fonts will not be sent due to size limitations"); yield break; } + yield return fontFile; } } @@ -425,7 +426,7 @@ namespace Jellyfin.Api.Controllers if (fontFile != null && fileSize != null && fileSize > 0) { - _logger.LogDebug("Fallback font size is {fileSize} Bytes", fileSize); + _logger.LogDebug("Fallback font size is {FileSize} Bytes", fileSize); FileStream stream = new FileStream(fontFile.FullName, FileMode.Open, FileAccess.Read); return File(stream, MimeTypes.GetMimeType(fontFile.FullName)); |
