Browse Source

Remove the CLI input decoding

pull/45/head
Zykino 4 years ago
parent
commit
8c99747898
2 changed files with 0 additions and 15 deletions
  1. +0
    -14
      lib/utils.py
  2. +0
    -1
      prismedia_upload.py

+ 0
- 14
lib/utils.py View File

@ -196,17 +196,3 @@ def cleanString(toclean):
cleaned = re.sub('[^A-Za-z0-9]+', '', toclean)
return cleaned
def decodeArgumentStrings(options, encoding):
# Python crash when decoding from UTF-8 to UTF-8, so we prevent this
if "utf-8" == encoding.lower():
return;
if options["--name"] is not None:
options["--name"] = options["--name"].decode(encoding)
if options["--description"] is not None:
options["--description"] = options["--description"].decode(encoding)
if options["--tags"] is not None:
options["--tags"] = options["--tags"].decode(encoding)

+ 0
- 1
prismedia_upload.py View File

@ -223,7 +223,6 @@ if __name__ == '__main__':
'--version': bool
})
utils.decodeArgumentStrings(options, locale.getpreferredencoding())
options = utils.parseNFO(options)
if not options.get('--thumbnail'):

Loading…
Cancel
Save