Browse Source

do not choke on utf8 file names

pull/7306/head
AnilDaoud 5 years ago
parent
commit
b8276a9613
  1. 3
      couchpotato/core/plugins/renamer.py

3
couchpotato/core/plugins/renamer.py

@ -4,6 +4,7 @@ import re
import shutil
import time
import traceback
import sys
from couchpotato import get_db
from couchpotato.api import addApiView
@ -31,6 +32,8 @@ class Renamer(Plugin):
checking_snatched = False
def __init__(self):
reload(sys)
sys.setdefaultencoding('utf8')
addApiView('renamer.scan', self.scanView, docs = {
'desc': 'For the renamer to check for new files to rename in a folder',
'params': {

Loading…
Cancel
Save