[library] Listening: the audiobook position as an event (latest write wins), replayed by the export

This commit is contained in:
2026-11-17 21:27:26 +01:00
parent 5f2cd1b7c1
commit bb0a63a173
6 changed files with 48 additions and 6 deletions
+3
View File
@@ -129,6 +129,9 @@ pub fn ops_from(lib: &Library) -> Vec<Op> {
if b.to_read {
ops.push(set(Field::ToRead, json!(true)));
}
if let Some((sha, ms)) = &b.audio_position {
ops.push(Op::AudioPosition { book: id.clone(), sha256: sha.clone(), ms: *ms });
}
if b.familiar {
ops.push(set(Field::Familiar, json!(true)));
}