mirror of
https://github.com/meisnate12/Plex-Meta-Manager
synced 2024-11-23 04:53:07 +00:00
[90] add keys attribute to dynamic_collections
This commit is contained in:
parent
b0d4033606
commit
5b81efeed4
2 changed files with 12 additions and 7 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
||||||
1.15.1-develop89
|
1.15.1-develop90
|
||||||
|
|
|
@ -338,6 +338,7 @@ class MetadataFile(DataFile):
|
||||||
logger.error(f"Config Error: <<title>> not in title_format: {title_format} using default: {default_title_format}")
|
logger.error(f"Config Error: <<title>> not in title_format: {title_format} using default: {default_title_format}")
|
||||||
title_format = default_title_format
|
title_format = default_title_format
|
||||||
titles = util.parse("Config", "titles", dynamic, parent=map_name, methods=methods, datatype="dict") if "titles" in methods else {}
|
titles = util.parse("Config", "titles", dynamic, parent=map_name, methods=methods, datatype="dict") if "titles" in methods else {}
|
||||||
|
keys = util.parse("Config", "keys", dynamic, parent=map_name, methods=methods, datatype="dict") if "keys" in methods else {}
|
||||||
test = util.parse("Config", "test", dynamic, parent=map_name, methods=methods, default=False, datatype="bool") if "test" in methods else False
|
test = util.parse("Config", "test", dynamic, parent=map_name, methods=methods, default=False, datatype="bool") if "test" in methods else False
|
||||||
sync = util.parse("Config", "sync", dynamic, parent=map_name, methods=methods, default=False, datatype="bool") if "sync" in methods else False
|
sync = util.parse("Config", "sync", dynamic, parent=map_name, methods=methods, default=False, datatype="bool") if "sync" in methods else False
|
||||||
if "<<library_type>>" in title_format:
|
if "<<library_type>>" in title_format:
|
||||||
|
@ -368,6 +369,10 @@ class MetadataFile(DataFile):
|
||||||
template_call[k] = v[key]
|
template_call[k] = v[key]
|
||||||
if key in titles:
|
if key in titles:
|
||||||
collection_title = titles[key]
|
collection_title = titles[key]
|
||||||
|
|
||||||
|
else:
|
||||||
|
if key in keys:
|
||||||
|
value = keys[key]
|
||||||
else:
|
else:
|
||||||
for prefix in remove_prefix:
|
for prefix in remove_prefix:
|
||||||
if value.startswith(prefix):
|
if value.startswith(prefix):
|
||||||
|
|
Loading…
Reference in a new issue