From 9132b6abf384ff264cc51f4ada619298bc18f027 Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Fri, 22 Jul 2022 21:11:33 -0400 Subject: [PATCH] [6] #979 startswith fix --- VERSION | 2 +- modules/meta.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/VERSION b/VERSION index efba3b50..b553ac8a 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.17.2-develop5 +1.17.2-develop6 diff --git a/modules/meta.py b/modules/meta.py index 0cc98cba..f2c85208 100644 --- a/modules/meta.py +++ b/modules/meta.py @@ -492,11 +492,11 @@ class MetadataFile(DataFile): all_keys = [str(i.title) for i in tags] auto_list = {str(i.title): i.title for i in tags if str(i.title) not in exclude} if library.is_music: - final_var = auto_type if auto_type.startwith("album") else f"artist_{auto_type}" + final_var = auto_type if auto_type.startswith("album") else f"artist_{auto_type}" default_template = {"smart_filter": {"limit": 50, "sort_by": "plays.desc", "any": {final_var: f"<>"}}} - if auto_type.startwith("album"): + if auto_type.startswith("album"): default_template["collection_level"] = "album" - default_title_format = f"Most Played <> {'Albums' if auto_type.startwith('album') else '<>'}s" + default_title_format = f"Most Played <> {'Albums' if auto_type.startswith('album') else '<>'}s" elif auto_type == "resolution": default_template = {"smart_filter": {"sort_by": "title.asc", "any": {auto_type: f"<>"}}} default_title_format = "<> <>s"