Detailansicht: Klick auf Cover/Titel → Modal mit Cover groß, Untertitel, Chips, Rating, Genres/Daten, Klappentext (per Audible-API), direkte Aktionen (Abspielen/Laden/Löschen/Alter)
This commit is contained in:
@ -18,6 +18,11 @@ export interface Book {
|
||||
is_finished: boolean
|
||||
date_added: string
|
||||
genres: string
|
||||
subtitle: string
|
||||
release_date: string
|
||||
rating: number
|
||||
num_ratings: number
|
||||
purchase_date: string
|
||||
local: boolean
|
||||
}
|
||||
|
||||
@ -78,6 +83,14 @@ export const bmSetNote = (asin: string, index: number, note: string) =>
|
||||
invoke<Bm[]>('bookmark_set_note', { asin, index, note })
|
||||
export const autostartEnabled = () => invoke<boolean>('autostart_enabled')
|
||||
export const autostartSet = (on: boolean) => invoke<void>('autostart_set', { on })
|
||||
|
||||
export interface BookExtra {
|
||||
description: string
|
||||
language: string
|
||||
format_type: string
|
||||
release_date: string
|
||||
}
|
||||
export const bookDetails = (asin: string) => invoke<BookExtra>('book_details', { asin })
|
||||
export function fmtClock(sec: number): string {
|
||||
const t = Math.max(0, Math.floor(sec))
|
||||
const h = Math.floor(t / 3600)
|
||||
|
||||
Reference in New Issue
Block a user