Inherit web links for Series and bug fixes (#4152)

This commit is contained in:
Fesaa
2025-10-25 21:35:53 +02:00
committed by GitHub
parent 935ed96416
commit 76f9e085eb
31 changed files with 4284 additions and 119 deletions
+16
View File
@@ -1,5 +1,6 @@
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using API.Entities;
using API.Entities.Enums;
namespace API.DTOs;
@@ -8,30 +9,45 @@ public sealed record UpdateLibraryDto
{
[Required]
public int Id { get; init; }
/// <inheritdoc cref="Library.Name"/>
[Required]
public required string Name { get; init; }
/// <inheritdoc cref="Library.Type"/>
[Required]
public LibraryType Type { get; set; }
/// <inheritdoc cref="Library.Folders"/>
[Required]
public required IEnumerable<string> Folders { get; init; }
/// <inheritdoc cref="Library.FolderWatching"/>
[Required]
public bool FolderWatching { get; init; }
/// <inheritdoc cref="Library.IncludeInDashboard"/>
[Required]
public bool IncludeInDashboard { get; init; }
/// <inheritdoc cref="Library.IncludeInSearch"/>
[Required]
public bool IncludeInSearch { get; init; }
/// <inheritdoc cref="Library.ManageCollections"/>
[Required]
public bool ManageCollections { get; init; }
/// <inheritdoc cref="Library.ManageReadingLists"/>
[Required]
public bool ManageReadingLists { get; init; }
/// <inheritdoc cref="Library.AllowScrobbling"/>
[Required]
public bool AllowScrobbling { get; init; }
/// <inheritdoc cref="Library.AllowMetadataMatching"/>
[Required]
public bool AllowMetadataMatching { get; init; }
/// <inheritdoc cref="Library.EnableMetadata"/>
[Required]
public bool EnableMetadata { get; init; }
/// <inheritdoc cref="Library.RemovePrefixForSortName"/>
[Required]
public bool RemovePrefixForSortName { get; init; }
/// <inheritdoc cref="Library.InheritWebLinksFromFirstChapter"/>
[Required]
public bool InheritWebLinksFromFirstChapter { get; init; }
/// <summary>
/// What types of files to allow the scanner to pickup
/// </summary>