add config option for pruning missing media
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
9654dd9218
commit
73af171830
3 changed files with 12 additions and 1 deletions
|
@ -833,7 +833,7 @@ async fn handle_media_check(
|
|||
.map_or(false, |md| md.is_symlink())
|
||||
};
|
||||
|
||||
if !old_exists && !new_exists {
|
||||
if config.prune_missing_media && !old_exists && !new_exists {
|
||||
error!(
|
||||
media_id = ?encode_key(key), ?new_path, ?old_path,
|
||||
"Media is missing at all paths. Removing from database..."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue