From b64a859fdc3c6d8d8a876a4e0bf37a786744a3b2 Mon Sep 17 00:00:00 2001 From: rupor Date: Sat, 12 May 2018 14:49:24 -0400 Subject: [PATCH] Correcting epub name --- fb2mobi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fb2mobi.py b/fb2mobi.py index f6e46b0..4524bce 100755 --- a/fb2mobi.py +++ b/fb2mobi.py @@ -275,7 +275,7 @@ def process_file(config, infile, outfile=None): elif config.output_format.lower() == 'epub': # Собираем epub config.log.info('Creating epub...') - outputfile = os.path.basename(outputfile) + '.epub' + outputfile = os.path.splitext(outputfile)[0] + '.epub' create_epub(temp_dir, outputfile) ext = config.output_format.lower()