From 5f0528191564c47e98d7c997764ba2795027fc96 Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Fri, 26 Jan 2024 17:08:25 -0500 Subject: [PATCH] [24] more operation fixes --- VERSION | 2 +- modules/config.py | 2 +- modules/operations.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/VERSION b/VERSION index 5a12a1cd..4a449753 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.20.0-develop23 +1.20.0-develop24 diff --git a/modules/config.py b/modules/config.py index 512711f4..a11edb28 100644 --- a/modules/config.py +++ b/modules/config.py @@ -875,7 +875,7 @@ class ConfigFile: continue if op == "mass_imdb_parental_labels": section_final[op] = check_for_attribute(config_op, op, test_list=data_type, default_is_none=True, save=False) - elif isinstance(data_type, list): + elif isinstance(data_type, dict): try: if not config_op[op]: raise Failed("is blank") diff --git a/modules/operations.py b/modules/operations.py index b98a90c6..d0ffe013 100644 --- a/modules/operations.py +++ b/modules/operations.py @@ -428,8 +428,8 @@ class Operations: new_genres = omdb_obj().genres # noqa elif option == "tvdb": new_genres = tvdb_obj().genres # noqa - elif option in anidb.weights: - new_genres = [str(t).title() for t, w in anidb_obj().tags.items() if w >= anidb.weights[option]] # noqa + elif str(option) in anidb.weights: + new_genres = [str(t).title() for t, w in anidb_obj().tags.items() if w >= anidb.weights[str(option)]] # noqa elif option == "mal": new_genres = mal_obj().genres # noqa else: