Filenames with Extended Characters
4325123 opened this issue · 1 comments
While running plex cleaner on Linux, I've hit a snag where if a directory exists with an extended character, such as a ã or ø. At first I just renamed the files to something else, but as I use plex cleaner more, I am finding more episodes that are popping up like this. The error I'm getting is:
$ ./PlexCleaner.py --test > out2.txt
Traceback (most recent call last):
File "./PlexCleaner.py", line 1271, in
changed += checkShow(DirectoryNode)
File "./PlexCleaner.py", line 952, in checkShow
log('[KEEPING] ' + getLocalPath(ep['file']))
File "./PlexCleaner.py", line 594, in getLocalPath
if file.startswith(Settings['RemoteMount']):
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 61: ordinal not in range(128)
I'm guessing the variable string needs to be escaped, but I figured I can't be the only person having these issues so I don't want to hack the code.
Nevermind. I should had looked at the code closer. It turns out if you do --reload_encoding it will fix everything.