mirror of
https://github.com/meisnate12/Plex-Meta-Manager
synced 2025-02-16 13:58:25 +00:00
[134] fix unhashable list error
This commit is contained in:
parent
76ffb37763
commit
653f8f0f7c
3 changed files with 5 additions and 6 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
|||
1.18.3-develop133
|
||||
1.18.3-develop134
|
||||
|
|
|
@ -29,7 +29,6 @@ templates:
|
|||
- name_mapping
|
||||
- trakt_list_<<key>>
|
||||
- imdb_list_<<key>>
|
||||
- mdblist_list
|
||||
minimum_items: <<minimum_items>>
|
||||
name_mapping: <<name_mapping_<<key>>>>
|
||||
imdb_list: <<imdb_list_<<key>>>>
|
||||
|
|
|
@ -631,9 +631,10 @@ class MetadataFile(DataFile):
|
|||
elif "styles" not in set_data:
|
||||
raise Failed("Set Data must have the styles attribute")
|
||||
styles = util.parse("Set Data", "styles", set_data["styles"], datatype="dictlist")
|
||||
if "default" not in styles:
|
||||
if "default" not in styles or not styles["default"]:
|
||||
raise Failed("Set Data styles attribute must have a default")
|
||||
if styles["default"] not in styles:
|
||||
style = styles["default"][0]
|
||||
if style not in styles:
|
||||
raise Failed(f"Set Data styles default style not found. Options: {', '.join([s for s in styles])}")
|
||||
use_key = None
|
||||
if f"use_{set_key}" in methods:
|
||||
|
@ -641,13 +642,12 @@ class MetadataFile(DataFile):
|
|||
logger.info(f"Use {set_key}: {use_key}")
|
||||
if use_key is False or (use_all is False and use_key is None):
|
||||
continue
|
||||
style = styles["default"]
|
||||
if f"style_{set_key}" in methods:
|
||||
style = util.parse("Images", f"style_{set_key}", self.temp_vars, methods=methods, default=style)
|
||||
logger.info(f"Style {set_key}: {style}")
|
||||
if style not in styles:
|
||||
logger.warning(f"Image Set Warning: {set_key} has no style: {style} using default: {styles['default']}. Options: {', '.join([s for s in styles])}")
|
||||
style = styles["default"]
|
||||
style = styles["default"][0]
|
||||
if "collections" in set_data and set_data["collections"]:
|
||||
self.set_collections[set_key] = set_data["collections"]
|
||||
image_set = self.temp_vars[methods[f"set_file_{set_key}"]] if f"set_file_{set_key}" in methods else styles[style]
|
||||
|
|
Loading…
Add table
Reference in a new issue