Feature/download ahead while reading (#464)

* Download next chapters when marking chapter as read while reading

* Add "auto delete chapter" settings

* Delete chapter after finished reading

* Delete chapters after marking them as read

* Improve "mark previous as read" action

Send only ids of chapters that are actually unread
This commit is contained in:
schroda
2023-11-19 21:17:35 +01:00
committed by GitHub
parent e26907e2ce
commit d12ac27b61
10 changed files with 240 additions and 31 deletions

View File

@@ -88,11 +88,13 @@ export type MetadataHolder<Keys extends string = string, Values = string> = {
export type AllowedMetadataValueTypes = string | boolean | number | undefined;
export type MetadataServerSettingKeys = keyof MetadataServerSettings;
export type MangaMetadataKeys = keyof IReaderSettings;
export type SearchMetadataKeys = keyof ISearchSettings;
export type AppMetadataKeys = MangaMetadataKeys | SearchMetadataKeys;
export type AppMetadataKeys = MetadataServerSettingKeys | MangaMetadataKeys | SearchMetadataKeys;
export type MetadataKeyValuePair = [AppMetadataKeys, AllowedMetadataValueTypes];
@@ -226,6 +228,12 @@ export enum ChapterOffset {
NEXT = 1,
}
export type MetadataServerSettings = {
deleteChaptersManuallyMarkedRead: boolean;
deleteChaptersAutoMarkedRead: boolean;
deleteChaptersWithBookmark: boolean;
};
export interface ISearchSettings {
ignoreFilters: boolean;
}