mirror of
https://github.com/fergalmoran/picard.git
synced 2026-02-25 09:03:59 +00:00
PICARD-1123: Multiple work languages are collapsed
If the server provides multiple languages, use all of them. Otherwise, fall back to the single language field.
This commit is contained in:
@@ -352,7 +352,10 @@ def performance_to_metadata(relation, m):
|
||||
|
||||
def work_to_metadata(work, m):
|
||||
m.add_unique("musicbrainz_workid", work['id'])
|
||||
if 'language' in work:
|
||||
if 'languages' in work:
|
||||
for language in work['languages']:
|
||||
m.add_unique("language", language)
|
||||
elif 'language' in work:
|
||||
m.add_unique("language", work['language'])
|
||||
if 'title' in work:
|
||||
m.add_unique("work", work['title'])
|
||||
|
||||
Reference in New Issue
Block a user