Browse Source

Force the NFO parsing to read as UTF-8

pull/45/head
Zykino 4 years ago
parent
commit
e94b48278a
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      lib/utils.py

+ 3
- 3
lib/utils.py View File

@ -132,7 +132,7 @@ def loadNFO(options):
logging.info("Using " + options.get('--nfo') + " as NFO, loading...")
if isfile(options.get('--nfo')):
nfo = RawConfigParser()
nfo.read(options.get('--nfo'))
nfo.read(options.get('--nfo'), encoding='utf-8')
return nfo
else:
logging.error("Given NFO file does not exist, please check your path.")
@ -147,7 +147,7 @@ def loadNFO(options):
try:
logging.info("Using " + nfo_file + " as NFO, loading...")
nfo = RawConfigParser()
nfo.read(nfo_file)
nfo.read(nfo_file, encoding='utf-8')
return nfo
except Exception as e:
logging.error("Problem with NFO file: " + str(e))
@ -160,7 +160,7 @@ def loadNFO(options):
try:
logging.info("Using " + nfo_file + " as NFO, loading...")
nfo = RawConfigParser()
nfo.read(nfo_file)
nfo.read(nfo_file, encoding='utf-8')
return nfo
except Exception as e:
logging.error("Problem with nfo file: " + str(e))

Loading…
Cancel
Save