diff --git a/src/calibre/ebooks/lrf/html/convert_from.py b/src/calibre/ebooks/lrf/html/convert_from.py index 515ec4182d..bab56e3a58 100644 --- a/src/calibre/ebooks/lrf/html/convert_from.py +++ b/src/calibre/ebooks/lrf/html/convert_from.py @@ -1891,6 +1891,12 @@ def process_file(path, options, logger): if options.header: header = Paragraph() fheader = options.headerformat + if not options.title: + options.title = _('Unknown') + if not options.author: + options.author = _('Unknown') + if not fheader: + fheader = "%t by %a" fheader = re.sub(r'(?