Skip to content

Commit

Permalink
Update beets/autotag/mb.py
Browse files Browse the repository at this point in the history
Co-authored-by: Adrian Sampson <[email protected]>
  • Loading branch information
aereaux and sampsyo authored Oct 28, 2020
1 parent d70287d commit d011a4e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions beets/autotag/mb.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,8 +417,9 @@ def album_info(release):
first_medium = release['medium-list'][0]
info.media = first_medium.get('format')

if release.get('genre-list'):
info.genre = ';'.join(g['name'] for g in release['genre-list'])
genres = release.get('genre-list')
if genres:
info.genre = ';'.join(g['name'] for g in genres)

info.decode()
return info
Expand Down

0 comments on commit d011a4e

Please sign in to comment.