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:
@ -166,6 +166,14 @@ async fn player_stop(pl: tauri::State<'_, SharedPlayer>) -> Result<PlayerState,
|
||||
.map_err(|e| format!("Hintergrundthread fehlgeschlagen: {e}"))?
|
||||
}
|
||||
|
||||
/// Einzeldetails (Beschreibung u. a.) per Audible-API, on demand.
|
||||
#[tauri::command]
|
||||
async fn book_details(asin: String) -> Result<audible::BookExtra, String> {
|
||||
tauri::async_runtime::spawn_blocking(move || audible::fetch_details(&asin))
|
||||
.await
|
||||
.map_err(|e| format!("Hintergrundthread fehlgeschlagen: {e}"))?
|
||||
}
|
||||
|
||||
#[tauri::command]
|
||||
async fn bookmark_list(asin: String) -> Result<Vec<bookmarks::Bookmark>, String> {
|
||||
tauri::async_runtime::spawn_blocking(move || bookmarks::list(&asin))
|
||||
@ -283,6 +291,7 @@ pub fn run() {
|
||||
start_decrypt,
|
||||
get_library,
|
||||
get_local_books,
|
||||
book_details,
|
||||
stream_only,
|
||||
get_alter_notes,
|
||||
set_alter_note,
|
||||
|
||||
Reference in New Issue
Block a user