Custom keybinds, Default language per Library, and bugfixes (#4162)

Co-authored-by: Joseph Milazzo <josephmajora@gmail.com>
This commit is contained in:
Fesaa
2025-11-01 15:56:00 +01:00
committed by GitHub
parent f9280f6861
commit 2c6eddfebb
72 changed files with 6038 additions and 441 deletions
@@ -2,8 +2,12 @@
public sealed record UpdateStreamPositionDto
{
public string StreamName { get; set; }
public int Id { get; set; }
public int FromPosition { get; set; }
public int ToPosition { get; set; }
public int Id { get; set; }
public string StreamName { get; set; }
/// <summary>
/// If the <see cref="ToPosition"/> has taken into account non-visible items
/// </summary>
public bool PositionIncludesInvisible { get; set; }
}
+2
View File
@@ -77,4 +77,6 @@ public sealed record LibraryDto
public bool RemovePrefixForSortName { get; set; } = false;
/// <inheritdoc cref="Library.InheritWebLinksFromFirstChapter"/>
public bool InheritWebLinksFromFirstChapter { get; init; }
/// <inheritdoc cref="Library.DefaultLanguage"/>
public string DefaultLanguage { get; init; }
}
+2
View File
@@ -48,6 +48,8 @@ public sealed record UpdateLibraryDto
/// <inheritdoc cref="Library.InheritWebLinksFromFirstChapter"/>
[Required]
public bool InheritWebLinksFromFirstChapter { get; init; }
/// <inheritdoc cref="Library.DefaultLanguage"/>
public string DefaultLanguage { get; init; }
/// <summary>
/// What types of files to allow the scanner to pickup
/// </summary>
+3
View File
@@ -40,6 +40,9 @@ public sealed record UserPreferencesDto
/// <inheritdoc cref="API.Entities.AppUserPreferences.DataSaver"/>
[Required]
public bool DataSaver { get; set; } = false;
/// <inheritdoc cref="API.Entities.AppUserPreferences.CustomKeyBinds"/>
[Required]
public Dictionary<KeyBindTarget, IList<KeyBind>> CustomKeyBinds { get; set; } = [];
/// <inheritdoc cref="API.Entities.AppUserPreferences.AniListScrobblingEnabled"/>
public bool AniListScrobblingEnabled { get; set; }