[24] more operation fixes

pull/1855/head
meisnate12 10 months ago
parent 278f685284
commit 5f05281915

@ -1 +1 @@
1.20.0-develop23
1.20.0-develop24

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

@ -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:

Loading…
Cancel
Save