mirror of
https://github.com/beetbox/beets.git
synced 2025-12-29 20:12:33 +01:00
Fixes KeyError ['type'] error
This commit is contained in:
parent
31af2c498e
commit
25b67d7c27
1 changed files with 4 additions and 3 deletions
|
|
@ -99,9 +99,10 @@ def album_info(release):
|
|||
info.asin = release['asin']
|
||||
|
||||
# Release type not always populated.
|
||||
reltype = release['release-group']['type']
|
||||
if reltype:
|
||||
info.albumtype = reltype.lower()
|
||||
if 'type' in release['release-group']:
|
||||
reltype = release['release-group']['type']
|
||||
if reltype:
|
||||
info.albumtype = reltype.lower()
|
||||
|
||||
# Release date.
|
||||
if 'first-release-date' in release['release-group']:
|
||||
|
|
|
|||
Loading…
Reference in a new issue