Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

APEv2 UnicodeDecodeError #174

Closed
lazka opened this issue Jul 4, 2014 · 1 comment
Closed

APEv2 UnicodeDecodeError #174

lazka opened this issue Jul 4, 2014 · 1 comment
Labels
bug

Comments

@lazka
Copy link
Member

@lazka lazka commented Jul 4, 2014

Originally reported by: Christoph Reiter (Bitbucket: lazka, GitHub: lazka)


From reiter.christoph@gmail.com on May 22, 2014 22:27:50

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: http://code.google.com/p/mutagen/issues/detail?id=174


@lazka

This comment has been minimized.

Copy link
Member Author

@lazka lazka commented Sep 25, 2014

Original comment by Christoph Reiter (Bitbucket: lazka, GitHub: lazka):


apev2: store text values as unicode and fail during parsing. (Fixes issue #174)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.