Use multi-value %_performance_attributes% ...
This commit is contained in:
Laurent Monin
2014-04-24 10:09:44 +02:00
2 changed files with 3 additions and 2 deletions

View File

@@ -43,7 +43,8 @@
* Add checkbox to toggle debug at runtime in log/debug view dialog
* Add a plugin to add Artist Official Homepage relationships to the website tag (ID3 WOAR tag)
* Add integrated functions $eq_any, $ne_all, $eq_all, $ne_any, $swapprefix and $delprefix.
* Add %_performance_live%, %_performance_cover% etc. if track is shown as live, cover etc. in the MB database.
* Add %_performance_attributes%, containing performance attributes for the work e.g. live, cover, medley etc.
Use $inmulti in file naming scripts i.e. ...$if($inmulti(%_performance_attributes%,medley), (Medley),)
Version 1.2 - 2013-03-30

View File

@@ -273,7 +273,7 @@ def performance_to_metadata(relation, m):
if 'attribute_list' in relation.children:
if 'attribute' in relation.attribute_list[0].children:
for attribute in relation.attribute_list[0].attribute:
m["~performance_%s" % attribute.text] = "1"
m.add_unique("~performance_attributes", attribute.text)
def work_to_metadata(work, m):