small problem with parent composer

This commit is contained in:
soergeld 2020-08-09 18:56:52 +02:00
parent 76ca0549a9
commit d748cc7744

View file

@ -129,6 +129,7 @@ class ParentWorkPlugin(BeetsPlugin):
if 'artist-relation-list' in work_info['work']: if 'artist-relation-list' in work_info['work']:
for artist in work_info['work']['artist-relation-list']: for artist in work_info['work']['artist-relation-list']:
if artist['type'] == 'composer': if artist['type'] == 'composer':
composer_exists = True
parent_composer.append(artist['artist']['name']) parent_composer.append(artist['artist']['name'])
parent_composer_sort.append(artist['artist']['sort-name']) parent_composer_sort.append(artist['artist']['sort-name'])
if 'end' in artist.keys(): if 'end' in artist.keys():