mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 12:53:37 +02:00
Unicode fixes for web2lrf
This commit is contained in:
parent
efbc08ddf0
commit
ce43482952
1 changed files with 2 additions and 1 deletions
|
|
@ -141,8 +141,9 @@ def process_profile(args, options, logger=None):
|
|||
|
||||
htmlfile, tdir = fetch_website(options, logger)
|
||||
options.encoding = 'utf-8'
|
||||
cwd = os.getcwdu()
|
||||
cwd = os.getcwd()
|
||||
if not options.output:
|
||||
title = options.title.encode(sys.getfilesystemencoding()) if isinstance(options.title, unicode) else options.title
|
||||
options.output = os.path.join(cwd, options.title+('.lrs' if options.lrs else '.lrf'))
|
||||
if not os.path.isabs(options.output):
|
||||
options.output = os.path.join(cwd, options.output)
|
||||
|
|
|
|||
Loading…
Reference in a new issue