diff --git a/NEWS.txt b/NEWS.txt index 219ffc7f5..e57caa528 100644 --- a/NEWS.txt +++ b/NEWS.txt @@ -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 diff --git a/picard/mbxml.py b/picard/mbxml.py index 8c3071493..f14008d28 100644 --- a/picard/mbxml.py +++ b/picard/mbxml.py @@ -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):