From 9d987a39f760d7c987c6ec963a0f64de75880123 Mon Sep 17 00:00:00 2001 From: reconman Date: Sat, 23 Mar 2024 00:14:20 +0100 Subject: [PATCH] Properly validate remote mappings --- plexanisync/custom_mappings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plexanisync/custom_mappings.py b/plexanisync/custom_mappings.py index aac6529..ffc8a2f 100644 --- a/plexanisync/custom_mappings.py +++ b/plexanisync/custom_mappings.py @@ -108,7 +108,7 @@ def read_custom_mappings() -> Dict[str, List[AnilistCustomMapping]]: yaml_content = value[1] file_mappings_remote = yaml.load(yaml_content) try: - validate(file_mappings_local, schema) + validate(file_mappings_remote, schema) except ValidationError as e: logger.error(f'Custom Mappings {mapping_location} validation failed!') __handle_yaml_error(file_mappings_remote, e)