Join GitHub today
UnicodeDecodeError during local scan #1599
Hi, I was using Mopidy and it worked fine. Without any change to config, I altered my collection.
After that, local scan started to crash. I had a backup of my collection and restored that, but I still get the crash and there is no info that would help me to identify on what songs it crashes.
Have looked at mopidy.txt and searched for similar errors. The cause for this error might be that your locale LANG variable is unset, see SO. At least I got the same error with locale_decode(bytestr) when I unset my LANG variable.
I propose that local_decode() returns a string to scan.py if it fails with decoding. The error string could be "Codec can't decode content. Check your LANG setting ($ echo $LANG).". Then I assume that the scanner stops at the track that failed, thus giving better feedback to the user.
(I can implement a fix for the issue.)