mirror of
https://git.lecygnenoir.info/LecygneNoir/prismedia.git
synced 2025-10-04 18:09:16 +02:00
Force the NFO parsing to read as UTF-8
This commit is contained in:
parent
8c99747898
commit
e94b48278a
1 changed files with 3 additions and 3 deletions
|
@ -132,7 +132,7 @@ def loadNFO(options):
|
||||||
logging.info("Using " + options.get('--nfo') + " as NFO, loading...")
|
logging.info("Using " + options.get('--nfo') + " as NFO, loading...")
|
||||||
if isfile(options.get('--nfo')):
|
if isfile(options.get('--nfo')):
|
||||||
nfo = RawConfigParser()
|
nfo = RawConfigParser()
|
||||||
nfo.read(options.get('--nfo'))
|
nfo.read(options.get('--nfo'), encoding='utf-8')
|
||||||
return nfo
|
return nfo
|
||||||
else:
|
else:
|
||||||
logging.error("Given NFO file does not exist, please check your path.")
|
logging.error("Given NFO file does not exist, please check your path.")
|
||||||
|
@ -147,7 +147,7 @@ def loadNFO(options):
|
||||||
try:
|
try:
|
||||||
logging.info("Using " + nfo_file + " as NFO, loading...")
|
logging.info("Using " + nfo_file + " as NFO, loading...")
|
||||||
nfo = RawConfigParser()
|
nfo = RawConfigParser()
|
||||||
nfo.read(nfo_file)
|
nfo.read(nfo_file, encoding='utf-8')
|
||||||
return nfo
|
return nfo
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logging.error("Problem with NFO file: " + str(e))
|
logging.error("Problem with NFO file: " + str(e))
|
||||||
|
@ -160,7 +160,7 @@ def loadNFO(options):
|
||||||
try:
|
try:
|
||||||
logging.info("Using " + nfo_file + " as NFO, loading...")
|
logging.info("Using " + nfo_file + " as NFO, loading...")
|
||||||
nfo = RawConfigParser()
|
nfo = RawConfigParser()
|
||||||
nfo.read(nfo_file)
|
nfo.read(nfo_file, encoding='utf-8')
|
||||||
return nfo
|
return nfo
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logging.error("Problem with nfo file: " + str(e))
|
logging.error("Problem with nfo file: " + str(e))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue