Skip to content

Problem with Lastgenre #490

@iluvdirt

Description

@iluvdirt

The lastgenre plugin has been crashing when importing. Here is the traceback with the -v option:

beet -v import ~/Music/iTunes/iTunes\ Music/Atlas\ Sound/Weekend\ EP
data directory: /Users/elginharryman/.config/beets
library database: /Users/elginharryman/.config/beets/data/musiclibrary.blb
library directory: /Users/elginharryman/Music/iTunes/iTunes\ Music
Sending event: import_task_start
Looking up: /Users/elginharryman/Music/iTunes/iTunes Music/Atlas Sound/Weekend EP
Tagging Atlas Sound - Weekend EP
No album IDs found.
Search terms: Atlas Sound - Weekend EP
Album might be VA: False
Evaluating 5 candidates.
Candidate: Atlas Sound - Weekend EP
Success. Distance: 0.000000
Candidate: Atlas Sound - Holiday EP #1
Success. Distance: 0.531641
Candidate: Atlas Sound - 2006-11-25: The EARL, Athens, GA, USA
Success. Distance: 0.535044
Candidate: Atlas Sound - Altitude Sickness
Success. Distance: 0.545913
Candidate: Atlas Sound - "Recent Bedroom" Demos
Success. Distance: 0.522847

/Users/elginharryman/Music/iTunes/iTunes Music/Atlas Sound/Weekend EP (3 items)
Tagging:
    Atlas Sound - Weekend EP
(Similarity: 100.0%) (Digital Media, 2007, XW)
 * Saturday Night We Went Swimming And There Was A Light In The Water ->
   Saturday Night We Went Swimming and There Was a Light in the Water
 * Sunday Evening We Relaxed In Our Rooms and Called Each Other on the Phone ->
   Sunday Evening We Relaxed in Our Rooms and Called Each Other on the Phone
Sending event: import_task_choice
Sending event: import_task_apply
replacing item 75: /Users/elginharryman/Music/iTunes/iTunes Music/Atlas Sound/Weekend EP/01 Friday Night We Took Acid and Laid on Matt's Bedroom Floor Staring at His Ceiling Fan While His Parents Watched T.V. Downstairs.mp3
replacing item 76: /Users/elginharryman/Music/iTunes/iTunes Music/Atlas Sound/Weekend EP/02 Saturday Night We Went Swimming And There Was A Light In The Water.mp3
replacing item 77: /Users/elginharryman/Music/iTunes/iTunes Music/Atlas Sound/Weekend EP/03 Sunday Evening We Relaxed In Our Rooms and Called Each Other on the Phone.mp3
3 of 3 items replaced
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
fetchart: downloading art: http://coverartarchive.org/release/1b6c4211-1cf7-4d92-98b1-c224595a313e/front-500.jpg
fetchart: not an image
fetchart: downloading art: http://coverartarchive.org/release-group/f1cc5758-3065-399a-8eff-0b0bd4acb184/front-500.jpg
fetchart: not an image
Traceback (most recent call last):
  File "/usr/local/bin/beet", line 9, in <module>
    load_entry_point('beets==1.3.2', 'console_scripts', 'beet')()
  File "/Library/Python/2.6/site-packages/beets-1.3.2-py2.6.egg/beets/ui/__init__.py", line 810, in main
    _raw_main(args)
  File "/Library/Python/2.6/site-packages/beets-1.3.2-py2.6.egg/beets/ui/__init__.py", line 802, in _raw_main
    subcommand.func(lib, suboptions, subargs)
  File "/Library/Python/2.6/site-packages/beets-1.3.2-py2.6.egg/beets/ui/commands.py", line 845, in import_func
    import_files(lib, paths, query)
  File "/Library/Python/2.6/site-packages/beets-1.3.2-py2.6.egg/beets/ui/commands.py", line 783, in import_files
    session.run()
  File "/Library/Python/2.6/site-packages/beets-1.3.2-py2.6.egg/beets/importer.py", line 341, in run
    pl.run_parallel(QUEUE_SIZE)
  File "/Library/Python/2.6/site-packages/beets-1.3.2-py2.6.egg/beets/util/pipeline.py", line 243, in run
    out = self.coro.send(msg)
  File "/Library/Python/2.6/site-packages/beets-1.3.2-py2.6.egg/beets/importer.py", line 815, in plugin_stage
    func(session, task)
  File "/Library/Python/2.6/site-packages/beets-1.3.2-py2.6.egg/beetsplug/lastgenre/__init__.py", line 367, in imported
    album.genre, src = self._get_genre(album)
  File "/Library/Python/2.6/site-packages/beets-1.3.2-py2.6.egg/beetsplug/lastgenre/__init__.py", line 286, in _get_genre
    result = fetch_album_genre(obj)
  File "/Library/Python/2.6/site-packages/beets-1.3.2-py2.6.egg/beetsplug/lastgenre/__init__.py", line 182, in fetch_album_genre
    obj.album)
  File "/Library/Python/2.6/site-packages/beets-1.3.2-py2.6.egg/beetsplug/lastgenre/__init__.py", line 174, in _cached_lookup
    genre = fetch_genre(method(*args))
  File "/Library/Python/2.6/site-packages/beets-1.3.2-py2.6.egg/beetsplug/lastgenre/__init__.py", line 123, in fetch_genre
    return _strings_to_genre(_tags_for(lastfm_obj))
  File "/Library/Python/2.6/site-packages/beets-1.3.2-py2.6.egg/beetsplug/lastgenre/__init__.py", line 81, in _tags_for
    dbg.append(u'{} [{}]'.format(tag, weight))
ValueError: zero length field name in format

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions