diff --git a/VERSION b/VERSION index e8e3f964..3db161af 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.16.2-develop16 +1.16.2-develop17 diff --git a/modules/meta.py b/modules/meta.py index 94383afd..ef17e683 100644 --- a/modules/meta.py +++ b/modules/meta.py @@ -422,8 +422,8 @@ class MetadataFile(DataFile): template_name = util.parse("Config", "template", dynamic, parent=map_name, methods=methods) if template_name not in self.templates: raise Failed(f"Config Error: {map_name} template: {template_name} not found") - if f"<<{auto_type}>>" not in str(self.templates[template_name]): - raise Failed(f"Config Error: {map_name} template: {template_name} is required to have the template variable <<{auto_type}>>") + if "<>" not in str(self.templates[template_name]) and f"<<{auto_type}>>" not in str(self.templates[template_name]): + raise Failed(f"Config Error: {map_name} template: {template_name} is required to have the template variable <>") else: self.templates[map_name] = default_template if default_template else default_templates[auto_type] template_name = map_name diff --git a/modules/plex.py b/modules/plex.py index d76fa2c1..83850714 100644 --- a/modules/plex.py +++ b/modules/plex.py @@ -1002,7 +1002,8 @@ class Plex(Library): if isinstance(item, (Movie, Show)) and not poster and overlay: self.upload_images(item, overlay=overlay) if create and folders and not found_folder: - found_folder = os.path.join(self.asset_directory[0], name) + filename, _ = util.validate_filename(name) + found_folder = os.path.join(self.asset_directory[0], filename) os.makedirs(found_folder, exist_ok=True) logger.info(f"Asset Directory Created: {found_folder}") elif isinstance(item, (Movie, Show)) and not overlay and folders and not found_folder: