mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-05-24 02:02:29 -04:00
fix lint
This commit is contained in:
parent
16658c92fe
commit
dd3b48f203
@ -393,6 +393,7 @@ namespace Jellyfin.Api.Controllers
|
|||||||
_logger.LogWarning("Some fonts will not be sent due to size limitations");
|
_logger.LogWarning("Some fonts will not be sent due to size limitations");
|
||||||
yield break;
|
yield break;
|
||||||
}
|
}
|
||||||
|
|
||||||
yield return fontFile;
|
yield return fontFile;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -425,7 +426,7 @@ namespace Jellyfin.Api.Controllers
|
|||||||
|
|
||||||
if (fontFile != null && fileSize != null && fileSize > 0)
|
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);
|
FileStream stream = new FileStream(fontFile.FullName, FileMode.Open, FileAccess.Read);
|
||||||
return File(stream, MimeTypes.GetMimeType(fontFile.FullName));
|
return File(stream, MimeTypes.GetMimeType(fontFile.FullName));
|
||||||
|
@ -1,17 +1,17 @@
|
|||||||
#nullable disable
|
|
||||||
#pragma warning disable CS1591
|
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace MediaBrowser.Model.Subtitles
|
namespace MediaBrowser.Model.Subtitles
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Class FontFile.
|
||||||
|
/// </summary>
|
||||||
public class FontFile
|
public class FontFile
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the name.
|
/// Gets or sets the name.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The name.</value>
|
/// <value>The name.</value>
|
||||||
public string Name { get; set; }
|
public string? Name { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the size.
|
/// Gets or sets the size.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user