[library] Listening: the audiobook position as an event (latest write wins), replayed by the export
This commit is contained in:
@@ -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)));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user