snejus / beetcamp

Bandcamp autotagger source for beets (http://beets.io)
GNU General Public License v2.0
64 stars 11 forks source link

Searching albums by id throws AttributeError #31

Closed snejus closed 2 years ago

snejus commented 2 years ago

Running

beet import NA.Resistere.mp3 --search-id https://mokadelic.bandcamp.com/album/crolli-original-soundtrack-for-crolli-dance-performance

throws

  File "/media/poetry/virtualenvs/beets-Aa8bLWH0-py3.8/lib/python3.8/site-packages/beets/autotag/match.py", line 423, in tag_album
    _add_candidate(items, candidates, id_candidate)
  File "/media/poetry/virtualenvs/beets-Aa8bLWH0-py3.8/lib/python3.8/site-packages/beets/autotag/match.py", line 353, in _add_candidate
    info.artist, info.album, info.album_id)
AttributeError: 'list' object has no attribute 'artist'

Same happens if I run beet import NA.Resistere.mp3 and choose to enter a release Id (by pressing letter I).

This bug was most probably introduced in 0.14.0 with the introduction of all release formats.