mirror of
https://github.com/meisnate12/Plex-Meta-Manager
synced 2024-11-26 06:20:23 +00:00
[132] #1095 metadata file doesnt have to exist
This commit is contained in:
parent
965b0f7dc9
commit
1c166f8cc5
1 changed files with 4 additions and 1 deletions
|
@ -765,7 +765,10 @@ class ConfigFile:
|
|||
"add_blank_entries": True
|
||||
}
|
||||
if lib["operations"]["metadata_backup"] and isinstance(lib["operations"]["metadata_backup"], dict):
|
||||
params["metadata_backup"]["path"] = check_for_attribute(lib["operations"]["metadata_backup"], "path", var_type="path", default=params["metadata_backup"]["path"], save=False)
|
||||
try:
|
||||
params["metadata_backup"]["path"] = check_for_attribute(lib["operations"]["metadata_backup"], "path", var_type="path", save=False)
|
||||
except Failed as e:
|
||||
logger.debug(f"{e} using default {params['metadata_backup']['path']}")
|
||||
params["metadata_backup"]["exclude"] = check_for_attribute(lib["operations"]["metadata_backup"], "exclude", var_type="comma_list", default_is_none=True, save=False)
|
||||
params["metadata_backup"]["sync_tags"] = check_for_attribute(lib["operations"]["metadata_backup"], "sync_tags", var_type="bool", default=False, save=False)
|
||||
params["metadata_backup"]["add_blank_entries"] = check_for_attribute(lib["operations"]["metadata_backup"], "add_blank_entries", var_type="bool", default=True, save=False)
|
||||
|
|
Loading…
Reference in a new issue