Using of 'performed by' AR types (without instrument or vocal).

This commit is contained in:
Lukáš Lalinský
2007-03-04 18:33:51 +01:00
parent ea7dfacc87
commit f0a0556e2c
2 changed files with 9 additions and 1 deletions

View File

@@ -1,3 +1,9 @@
Version 0.9.0alpha3 - 2007-03-XX
* New Features:
* Using of 'performed by' AR types (without instrument or vocal).
* Bug Fixes:
* Fixed file clustering.
Version 0.9.0alpha2 - 2007-03-04
* New Features:
* New variable %_extension% (#2447)

View File

@@ -24,7 +24,7 @@ from picard.util import format_time
_artist_rel_types = {
"Composer": "composer",
"Conductor": "conductor",
"Conductor": "conductor",
"PerformingOrchestra": "ensemble",
"Arranger": "arranger",
"Orchestrator": "arranger",
@@ -71,6 +71,8 @@ def _relations_to_metadata(relation_lists, m):
name = 'performer:' + ' '.join([_parse_attributes(attribs), 'vocal'])
elif reltype == 'Instrument':
name = 'performer:' + _parse_attributes(attribs)
elif reltype == 'Performer':
name = 'performer:'
else:
try:
name = _artist_rel_types[relation.type]