add config option for pruning missing media

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2024-08-27 01:46:09 +00:00
parent 9654dd9218
commit 73af171830
3 changed files with 12 additions and 1 deletions

View file

@ -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..."