small fixes

pull/700/head
meisnate12 3 years ago
parent c353f9975a
commit 5b3e17ba5d

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

@ -1422,11 +1422,11 @@ class CollectionBuilder:
if type_override: if type_override:
sort_type = 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"]: 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") 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"]] 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"]: 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") 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"]] sort_type = plex_filter[filter_alias["type"]]

@ -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_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 [] 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 {} 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 = [] other_keys = []
for key, value in auto_list.items(): for key, value in auto_list.items():
if include and key not in include: if include and key not in include:

Loading…
Cancel
Save