mopidy / mopidy-local

Mopidy extension for playing music from your local music archive
https://mopidy.com/ext/local/
Apache License 2.0
61 stars 26 forks source link

UTF-8 error with local extension #33

Closed Glog78 closed 4 years ago

Glog78 commented 4 years ago

Systemdetails -> -> Filesystem NTFS automounted with systemd -> system locale = de_DE.UTF-8

[local]

library = sqlite

data_dir = /var/lib/mopidy/local media_dir = /var/lib/mopidy/media scan_follow_symlinks = true

All directories which should be included are symlinked into /var/lib/mopidy/media

If i start mopidy local scan i get the following error since upgrading to mopidy local for version 3 of mopidy ->

2020-01-10 13:48:03,380 ERROR [47356:MainThread] mopidy.main: 'utf-8' codec can't encode character '\udc83' in position 43: surrogates not allowed Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/mopidy/main.py", line 143, in main return args.command.run(args, proxied_config) File "/usr/lib/python3.8/site-packages/mopidy_local/commands.py", line 111, in run uri = translator.path_to_local_track_uri(relpath) File "/usr/lib/python3.8/site-packages/mopidy_local/translator.py", line 33, in path_to_local_track_uri relpath = relpath.encode() UnicodeEncodeError: 'utf-8' codec can't encode character '\udc83' in position 43: surrogates not allowed

kingosticks commented 4 years ago

Mopidy-Local v3.1.0 was released yesterday which should fix this. It looks like you are running an older version (when submitting bugs please use mopidy deps to provide the version numbers).

Glog78 commented 4 years ago

Thanks i will try again with the new version as soon as it is available. Thanks for the fast answer.

kingosticks commented 4 years ago

No problem. It should already be available on Git, PyPI, Homebrew and apt.mopidy.com.