wilsonyu2006 / mutagen

Automatically exported from code.google.com/p/mutagen
GNU General Public License v2.0
0 stars 0 forks source link

APEv2 UnicodeDecodeError #174

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Traceback (most recent call last):
  File "/usr/local/bin/beet", line 9, in <module>
    load_entry_point('beets==1.3.5', 'console_scripts', 'beet')()
  File "/usr/local/lib/python2.7/dist-packages/beets/ui/__init__.py", line 967, in main
    _raw_main(args)
  File "/usr/local/lib/python2.7/dist-packages/beets/ui/__init__.py", line 958, in _raw_main
    subcommand.func(lib, suboptions, subargs)
  File "/usr/local/lib/python2.7/dist-packages/beets/ui/commands.py", line 816, in import_func
    import_files(lib, paths, query)
  File "/usr/local/lib/python2.7/dist-packages/beets/ui/commands.py", line 788, in import_files
    session.run()
  File "/usr/local/lib/python2.7/dist-packages/beets/importer.py", line 365, in run
    pl.run_sequential()
  File "/usr/local/lib/python2.7/dist-packages/beets/util/pipeline.py", line 331, in run_sequential
    list(self.pull())
  File "/usr/local/lib/python2.7/dist-packages/beets/util/pipeline.py", line 403, in pull
    for out in coros[0]:
  File "/usr/local/lib/python2.7/dist-packages/beets/importer.py", line 702, in read_tasks
    for paths, items in autotag.albums_in_dir(toppath):
  File "/usr/local/lib/python2.7/dist-packages/beets/autotag/__init__.py", line 54, in albums_in_dir
    i = library.Item.from_path(os.path.join(root, filename))
  File "/usr/local/lib/python2.7/dist-packages/beets/library.py", line 271, in from_path
    i.read(path)
  File "/usr/local/lib/python2.7/dist-packages/beets/library.py", line 328, in read
    value = getattr(mediafile, key)
  File "/usr/local/lib/python2.7/dist-packages/beets/mediafile.py", line 964, in __get__
    out = style.get(mediafile.mgfile)
  File "/usr/local/lib/python2.7/dist-packages/beets/mediafile.py", line 388, in get
    return self.deserialize(self.fetch(mutagen_file))
  File "/usr/local/lib/python2.7/dist-packages/beets/mediafile.py", line 395, in fetch
    return mutagen_file[self.key][0]
  File "/usr/local/lib/python2.7/dist-packages/mutagen/apev2.py", line 456, in __getitem__
    return unicode(self).split("\0")[index]
  File "/usr/local/lib/python2.7/dist-packages/mutagen/apev2.py", line 449, in __unicode__
    return unicode(str(self), "utf-8")
UnicodeDecodeError: 'utf8' codec can't decode byte 0xe9 in position 16: invalid 
continuation byte

Original issue reported on code.google.com by reiter.christoph@gmail.com on 22 May 2014 at 8:27

GoogleCodeExporter commented 8 years ago
mutagen has moved to Bitbucket: https://bitbucket.org/lazka/mutagen/issue/174

Original comment by reiter.christoph@gmail.com on 4 Jul 2014 at 3:33