mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2024-12-26 07:05:56 -05:00
also cleanup "Recording .. missing playback row"
This commit is contained in:
parent
7f711eedeb
commit
fdb6603b5e
@ -425,6 +425,12 @@ fn compare_stream(conn: &rusqlite::Connection, dir_id: i32, stream_id: i32, opts
|
|||||||
None => {
|
None => {
|
||||||
error!("Recording {} missing playback row: {:#?}", id, recording);
|
error!("Recording {} missing playback row: {:#?}", id, recording);
|
||||||
printed_error = true;
|
printed_error = true;
|
||||||
|
if opts.trash_orphan_sample_files {
|
||||||
|
ctx.files_to_trash.insert((dir_id, id));
|
||||||
|
}
|
||||||
|
if opts.delete_orphan_rows { // also delete recording/integrity rows, if any.
|
||||||
|
ctx.rows_to_delete.insert(id);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
match recording.file {
|
match recording.file {
|
||||||
|
Loading…
Reference in New Issue
Block a user