View Single Post
Old 11-13-2022, 10:58 PM   #7740
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 11,110
Karma: 77213681
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Code:
## If set, force_cover_image will be made the cover, taking precedence
## over specific story cover, first image, default and
## pre-existing(aka old) EPUB cover image.
## It can be either a 'file:' or 'http:' url.
## force_cover_image is a python string Template string with
## ${title}, ${author} etc, same as titlepage_entries. Unless
## allow_unsafe_filename is true, invalid filename chars will be
## removed from metadata fields
#force_cover_image:file:///C:/Users/username/Desktop/nook/images/icon.png
#force_cover_image:file:///C:/Users/username/Desktop/nook/images/${title}/icon.png
#force_cover_image:http://www.somesite.com/someimage.gif
How do I handle spaces in a file:// path, specifically the folder name (e.g. D:/Documents/My Writings/)? It never actually occurred to me before because I usually use file:///D:/Pictures/Fanfics/ or a URL.

It doesn't seem to like %20s:

Code:
ERROR: Unhandled exception: <b>InterpolationSyntaxError</b>:'%' must be followed by '%' or '('
What should I do here?

EDIT: Replacing the %20s with actual spaces seems to work. Perhaps this could be mentioned in the default.ini for future people?

Last edited by ownedbycats; 11-14-2022 at 01:16 AM.
ownedbycats is offline   Reply With Quote