mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Fix various typos
Found via `codespell -q 3 -S "./Emby.Server.Implementations/Localization" -L inh,som`
This commit is contained in:
parent
b318f33599
commit
c877ffa5ad
@ -3,7 +3,7 @@ using System;
|
|||||||
namespace Jellyfin.Data.Entities;
|
namespace Jellyfin.Data.Entities;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents the relational informations for an <see cref="BaseItemEntity"/>.
|
/// Represents the relational information for an <see cref="BaseItemEntity"/>.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class AncestorId
|
public class AncestorId
|
||||||
{
|
{
|
||||||
|
@ -3,7 +3,7 @@ using System;
|
|||||||
namespace Jellyfin.Data.Entities;
|
namespace Jellyfin.Data.Entities;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Provides informations about an Attachment to an <see cref="BaseItemEntity"/>.
|
/// Provides information about an Attachment to an <see cref="BaseItemEntity"/>.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class AttachmentStreamInfo
|
public class AttachmentStreamInfo
|
||||||
{
|
{
|
||||||
@ -18,7 +18,7 @@ public class AttachmentStreamInfo
|
|||||||
public required BaseItemEntity Item { get; set; }
|
public required BaseItemEntity Item { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or Sets The index within the source file.
|
/// Gets or Sets the index within the source file.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public required int Index { get; set; }
|
public required int Index { get; set; }
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@ public enum ProgramAudioEntity
|
|||||||
Mono = 0,
|
Mono = 0,
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Sterio.
|
/// Stereo.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
Stereo = 1,
|
Stereo = 1,
|
||||||
|
|
||||||
|
@ -66,7 +66,7 @@ public class TrickplayInfo
|
|||||||
public int Interval { get; set; }
|
public int Interval { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets peak bandwith usage in bits per second.
|
/// Gets or sets peak bandwidth usage in bits per second.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// Required.
|
/// Required.
|
||||||
|
@ -258,7 +258,7 @@ public sealed class BaseItemRepository
|
|||||||
private IQueryable<BaseItemEntity> ApplyGroupingFilter(IQueryable<BaseItemEntity> dbQuery, InternalItemsQuery filter)
|
private IQueryable<BaseItemEntity> ApplyGroupingFilter(IQueryable<BaseItemEntity> dbQuery, InternalItemsQuery filter)
|
||||||
{
|
{
|
||||||
// This whole block is needed to filter duplicate entries on request
|
// This whole block is needed to filter duplicate entries on request
|
||||||
// for the time beeing it cannot be used because it would destroy the ordering
|
// for the time being it cannot be used because it would destroy the ordering
|
||||||
// this results in "duplicate" responses for queries that try to lookup individual series or multiple versions but
|
// this results in "duplicate" responses for queries that try to lookup individual series or multiple versions but
|
||||||
// for that case the invoker has to run a DistinctBy(e => e.PresentationUniqueKey) on their own
|
// for that case the invoker has to run a DistinctBy(e => e.PresentationUniqueKey) on their own
|
||||||
|
|
||||||
@ -889,7 +889,7 @@ public sealed class BaseItemRepository
|
|||||||
/// <exception cref="InvalidOperationException">Will be thrown if an invalid serialisation is requested.</exception>
|
/// <exception cref="InvalidOperationException">Will be thrown if an invalid serialisation is requested.</exception>
|
||||||
public static BaseItemDto DeserialiseBaseItem(BaseItemEntity baseItemEntity, ILogger logger, IServerApplicationHost? appHost, bool skipDeserialization = false)
|
public static BaseItemDto DeserialiseBaseItem(BaseItemEntity baseItemEntity, ILogger logger, IServerApplicationHost? appHost, bool skipDeserialization = false)
|
||||||
{
|
{
|
||||||
var type = GetType(baseItemEntity.Type) ?? throw new InvalidOperationException("Cannot deserialise unkown type.");
|
var type = GetType(baseItemEntity.Type) ?? throw new InvalidOperationException("Cannot deserialise unknown type.");
|
||||||
BaseItemDto? dto = null;
|
BaseItemDto? dto = null;
|
||||||
if (TypeRequiresDeserialization(type) && baseItemEntity.Data is not null && !skipDeserialization)
|
if (TypeRequiresDeserialization(type) && baseItemEntity.Data is not null && !skipDeserialization)
|
||||||
{
|
{
|
||||||
@ -905,7 +905,7 @@ public sealed class BaseItemRepository
|
|||||||
|
|
||||||
if (dto is null)
|
if (dto is null)
|
||||||
{
|
{
|
||||||
dto = Activator.CreateInstance(type) as BaseItemDto ?? throw new InvalidOperationException("Cannot deserialise unkown type.");
|
dto = Activator.CreateInstance(type) as BaseItemDto ?? throw new InvalidOperationException("Cannot deserialise unknown type.");
|
||||||
}
|
}
|
||||||
|
|
||||||
return Map(baseItemEntity, dto, appHost);
|
return Map(baseItemEntity, dto, appHost);
|
||||||
@ -2065,7 +2065,7 @@ public sealed class BaseItemRepository
|
|||||||
if (filter.IncludeInheritedTags.Length > 0)
|
if (filter.IncludeInheritedTags.Length > 0)
|
||||||
{
|
{
|
||||||
// Episodes do not store inherit tags from their parents in the database, and the tag may be still required by the client.
|
// Episodes do not store inherit tags from their parents in the database, and the tag may be still required by the client.
|
||||||
// In addtion to the tags for the episodes themselves, we need to manually query its parent (the season)'s tags as well.
|
// In addition to the tags for the episodes themselves, we need to manually query its parent (the season)'s tags as well.
|
||||||
if (includeTypes.Length == 1 && includeTypes.FirstOrDefault() is BaseItemKind.Episode)
|
if (includeTypes.Length == 1 && includeTypes.FirstOrDefault() is BaseItemKind.Episode)
|
||||||
{
|
{
|
||||||
baseQuery = baseQuery
|
baseQuery = baseQuery
|
||||||
|
@ -22,7 +22,7 @@ using Microsoft.Extensions.Logging;
|
|||||||
namespace Jellyfin.Server.Implementations.MediaSegments;
|
namespace Jellyfin.Server.Implementations.MediaSegments;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Manages media segments retrival and storage.
|
/// Manages media segments retrieval and storage.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class MediaSegmentManager : IMediaSegmentManager
|
public class MediaSegmentManager : IMediaSegmentManager
|
||||||
{
|
{
|
||||||
|
@ -46,7 +46,7 @@ public class TrickplayManager : ITrickplayManager
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="logger">The logger.</param>
|
/// <param name="logger">The logger.</param>
|
||||||
/// <param name="mediaEncoder">The media encoder.</param>
|
/// <param name="mediaEncoder">The media encoder.</param>
|
||||||
/// <param name="fileSystem">The file systen.</param>
|
/// <param name="fileSystem">The file system.</param>
|
||||||
/// <param name="encodingHelper">The encoding helper.</param>
|
/// <param name="encodingHelper">The encoding helper.</param>
|
||||||
/// <param name="libraryManager">The library manager.</param>
|
/// <param name="libraryManager">The library manager.</param>
|
||||||
/// <param name="config">The server configuration manager.</param>
|
/// <param name="config">The server configuration manager.</param>
|
||||||
|
@ -321,7 +321,7 @@ public class MigrateLibraryDb : IMigrationRoutine
|
|||||||
|
|
||||||
if (dbContext.Database.IsSqlite())
|
if (dbContext.Database.IsSqlite())
|
||||||
{
|
{
|
||||||
_logger.LogInformation("Vaccum and Optimise jellyfin.db now.");
|
_logger.LogInformation("Vacuum and Optimise jellyfin.db now.");
|
||||||
dbContext.Database.ExecuteSqlRaw("PRAGMA optimize");
|
dbContext.Database.ExecuteSqlRaw("PRAGMA optimize");
|
||||||
dbContext.Database.ExecuteSqlRaw("VACUUM");
|
dbContext.Database.ExecuteSqlRaw("VACUUM");
|
||||||
_logger.LogInformation("jellyfin.db optimized successfully!");
|
_logger.LogInformation("jellyfin.db optimized successfully!");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user