Support individual “write to file” settings per book type, with configurable file size limits (#2206)

Co-authored-by: acx10 <acx10@users.noreply.github.com>
This commit is contained in:
ACX
2026-01-08 15:18:20 -07:00
committed by GitHub
co-authored by acx10
parent f75eb840c6
commit 15de049f3d
49 changed files with 3071 additions and 2815 deletions
@@ -87,9 +87,20 @@ export interface Lubimyczytac {
enabled: boolean;
}
export interface FormatWriteSettings {
enabled: boolean;
maxFileSizeInMb: number;
}
export interface SaveToOriginalFileSettings {
epub: FormatWriteSettings;
pdf: FormatWriteSettings;
cbx: FormatWriteSettings;
}
export interface MetadataPersistenceSettings {
moveFilesToLibraryPattern: boolean;
saveToOriginalFile: boolean;
saveToOriginalFile: SaveToOriginalFileSettings;
convertCbrCb7ToCbz: boolean;
}
@@ -77,7 +77,11 @@ describe('AppSettingsService', () => {
},
metadataPersistenceSettings: {
moveFilesToLibraryPattern: false,
saveToOriginalFile: false,
saveToOriginalFile: {
epub: {enabled: false, maxFileSizeInMb: 0},
pdf: {enabled: false, maxFileSizeInMb: 0},
cbx: {enabled: false, maxFileSizeInMb: 0}
},
convertCbrCb7ToCbz: false
},
metadataPublicReviewsSettings: {
@@ -424,7 +428,11 @@ describe('AppSettingsService - API Contract Tests', () => {
},
metadataPersistenceSettings: {
moveFilesToLibraryPattern: false,
saveToOriginalFile: false,
saveToOriginalFile: {
epub: {enabled: false, maxFileSizeInMb: 0},
pdf: {enabled: false, maxFileSizeInMb: 0},
cbx: {enabled: false, maxFileSizeInMb: 0}
},
convertCbrCb7ToCbz: false
},
metadataPublicReviewsSettings: {