fixing parentwork but no parent composer

This commit is contained in:
Dorian Soergel 2019-06-03 16:58:07 +02:00
parent a10ad548c9
commit feafc66f96

View file

@ -181,7 +181,7 @@ class ParentWorkPlugin(BeetsPlugin):
self._log.debug("Finished searching work for: " +
item.artist + ' - ' + item.title)
if parent_info['parent_composer']:
if hasattr(item, 'parentwork'):
self._log.debug("Work fetched: " + parent_info['parentwork'] +
' - ' + parent_info['parent_composer'])
else: