google-code-export / beets

Automatically exported from code.google.com/p/beets
MIT License
0 stars 0 forks source link

KeyError: 'language' on album import #378

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

When trying to import a particular album I get a KeyError on the 'language' 
field of the 'rep' dictionary (line 153 of autotag/mb.py). I'm using beets 
version 1.0b14, the traceback can be found on 
http://paste.pocoo.org/show/585596/ and the entire debug output can be found on 
http://paste.pocoo.org/show/585597/. Instead of breaking, Beets should identify 
the album as the following MB release: 
http://musicbrainz.org/release/14b1b218-65f6-4ad3-b9ad-33b01a40dbb3.

Please let me know if the audio files are required for debugging, so I can put 
them online for download somewhere.

BTW, I'm really liking Beets! Thanks for all the hard work you (and other 
committers) are putting into this great tool!

Regards,
Justin

Original issue reported on code.google.com by justin.v.wees on 22 Apr 2012 at 3:27

GoogleCodeExporter commented 9 years ago
Hi! Thanks for the report. It looks like you're a few revisions behind -- this 
was fixed in a recent commit. Line 153 of mb.py now uses .get() instead of 
subscripting to avoid this error:
https://github.com/sampsyo/beets/blob/master/beets/autotag/mb.py#L153
Try updating to the most recent source.

Original comment by adrian.sampson on 22 Apr 2012 at 11:01

GoogleCodeExporter commented 9 years ago
Oops, I think I overlooked the other ticket. Updating to the latest source 
solved my problem. Thanks!

Original comment by justin.v.wees on 23 Apr 2012 at 9:31