RuudBurger/CouchPotatoServer — pull request #2505 by davidrot (2013-11-22 08:11:29+00:00)
Title: Special characters in path

Topic: https://couchpota.to/forum/viewtopic.php?f=5&t=2696

Problem: Post progressing doesn't work, crashes.

11-21 13:55:09 ERROR [ couchpotato.core.event] Error in event "app.load", that wasn't caught: Traceback (most recent call last):
File "C:/Users//Desktop/CouchPotatoServer-master\couchpotato\core\event.py", line 12, in runHandler
return handler(args, *kwargs)
File "C:/Users//Desktop/CouchPotatoServer-master\couchpotato\core\plugins\renamer\main.py", line 373, in scan
remove_multiple = remove_multiple,
File "C:/Users//Desktop/CouchPotatoServer-master\couchpotato\core\plugins\renamer\main.py", line 580, in getRenameExtras
for extra in set(filter(test, group['files'][extra_type])):
File "C:/Users//Desktop/CouchPotatoServer-master\couchpotato\core\plugins\renamer\main.py", line 578, in test
return current_file[:-len(replacements['ext'])] in s
UnicodeDecodeError: 'ascii' codec can't decode byte 0x96 in position 112: ordinal not in range(128)

Solution:

couchpotato/core/plugins/scanner/main.py : 127

Replace with

for filename in walk_files:
name = toUnicode(os.path.join(root, filename))
files.append(name)