Altersangaben: Genre-Signal-Chip (Kinder/Jugend aus Audible-Genres) + manuelle Altersnote pro Buch (labels.json, Inline-Edit mit Stift-Button)

This commit is contained in:
2026-11-06 20:20:51 +01:00
parent 14b93e2fb1
commit 0b7e223ad5
7 changed files with 162 additions and 2 deletions

View File

@ -8,6 +8,8 @@
trash:
'<path d="M4 7h16"/><path d="M9 7V4h6v3"/><path d="M6.5 7l1 14h9l1-14"/>',
play: '<path d="M8 5v14l11-7z" fill="currentColor" stroke="none"/>',
pencil:
'<path d="M4 20h4L20 8l-4-4L4 16v4z"/><path d="M13.5 6.5l4 4"/>',
x: '<path d="M5 5l14 14"/><path d="M19 5 5 19"/>',
}

View File

@ -17,6 +17,7 @@ export interface Book {
percent_complete: number
is_finished: boolean
date_added: string
genres: string
local: boolean
}
@ -26,6 +27,9 @@ export const startDecrypt = () => invoke<boolean>('start_decrypt')
export const getLibrary = () => invoke<Book[]>('get_library')
export const getLocalBooks = () => invoke<Book[]>('get_local_books')
export const getStreamOnly = () => invoke<string[]>('stream_only')
export const getAlterNotes = () => invoke<Record<string, string>>('get_alter_notes')
export const setAlterNote = (asin: string, note: string | null) =>
invoke<void>('set_alter_note', { asin, note })
export interface DlItem {
asin: string