Skip to content
This repository has been archived by the owner on Mar 15, 2020. It is now read-only.

Commit

Permalink
Make sure process_file returns right file name
Browse files Browse the repository at this point in the history
  • Loading branch information
rupor-github committed Jun 28, 2018
1 parent 706552d commit ee56b77
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions fb2mobi-gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,7 @@ def process(self, mode):
config.log.info(' ')
# on success process_file will return proper new destination name
dest_file = fb2mobi.process_file(config, file, None)
self.log.debug('Resulting file: "{0}"'.format(dest_file))

# Отметим результат конвертации
item = None
Expand Down
2 changes: 1 addition & 1 deletion fb2mobi.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ def process_file(config, infile, outfile=None):

# Чистим временные файлы
rm_tmp_files(temp_dir)
return outputfile
return os.path.splitext(outputfile)[0] + '.' + ext


def process_folder(config, inputdir, outputdir=None):
Expand Down
2 changes: 1 addition & 1 deletion version.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

WINDOWS = sys.platform == 'win32'

VERSION = u'3.6.63'
VERSION = u'3.6.64'

0 comments on commit ee56b77

Please sign in to comment.