Chapter filename is set only when download happens
Some checks failed
Docker Image CI / build (push) Has been cancelled

https://github.com/C9Glax/tranga/issues/466
This commit is contained in:
2025-10-09 00:14:57 +02:00
parent 18f5021457
commit 7e8f575091
7 changed files with 608 additions and 30 deletions

View File

@@ -6,7 +6,7 @@ namespace API.Controllers.DTOs;
/// <summary>
/// <see cref="API.Schema.MangaContext.Chapter"/> DTO
/// </summary>
public sealed record Chapter(string Key, string MangaId, int? Volume, string ChapterNumber, string? Title, IEnumerable<MangaConnectorId> MangaConnectorIds, bool Downloaded, string FileName) : Identifiable(Key)
public sealed record Chapter(string Key, string MangaId, int? Volume, string ChapterNumber, string? Title, IEnumerable<MangaConnectorId> MangaConnectorIds, bool Downloaded, string? FileName) : Identifiable(Key)
{
/// <summary>
/// Identifier of the Manga this Chapter belongs to
@@ -53,7 +53,6 @@ public sealed record Chapter(string Key, string MangaId, int? Volume, string Cha
/// <summary>
/// Filename of the archive
/// </summary>
[Required]
[Description("Filename of the archive")]
public string FileName { get; init; } = FileName;
public string? FileName { get; init; } = FileName;
}