small fixes

This commit is contained in:
meisnate12 2022-02-05 00:49:14 -05:00
parent c353f9975a
commit 5b3e17ba5d
3 changed files with 4 additions and 4 deletions

View file

@ -1 +1 @@
1.15.1-develop48
1.15.1-develop49

View file

@ -1422,11 +1422,11 @@ class CollectionBuilder:
if type_override:
sort_type = type_override
elif smart and "type" in filter_alias and self.library.is_show:
elif "type" in filter_alias and self.library.is_show:
if plex_filter[filter_alias["type"]] not in ["shows", "seasons", "episodes"]:
raise Failed(f"{self.Type} Error: type: {plex_filter[filter_alias['type']]} is invalid, must be either shows, season, or episodes")
sort_type = plex_filter[filter_alias["type"]]
elif smart and "type" in filter_alias and self.library.is_music:
elif "type" in filter_alias and self.library.is_music:
if plex_filter[filter_alias["type"]] not in ["artists", "albums", "tracks"]:
raise Failed(f"{self.Type} Error: type: {plex_filter[filter_alias['type']]} is invalid, must be either artists, albums, or tracks")
sort_type = plex_filter[filter_alias["type"]]

View file

@ -355,7 +355,7 @@ class MetadataFile(DataFile):
remove_prefix = util.parse("Config", "remove_prefix", dynamic, parent=map_name, methods=methods, datatype="commalist") if "remove_prefix" in methods else []
remove_suffix = util.parse("Config", "remove_suffix", dynamic, parent=map_name, methods=methods, datatype="commalist") if "remove_suffix" in methods else []
sync = {i.title: i for i in self.library.search(libtype="collection", label=str(map_name))} if sync else {}
other_name = util.parse("Config", "other", dynamic, parent=map_name, methods=methods) if "other" in methods else None
other_name = util.parse("Config", "other", dynamic, parent=map_name, methods=methods) if "other" in methods and include else None
other_keys = []
for key, value in auto_list.items():
if include and key not in include: