From e652bfac225105f0e071b06c3bfedd81f4878a8c Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 9 Dec 2016 10:40:58 +0530 Subject: [PATCH] Fix running multiple file type plugins not seeing modified file from previous plugin --- src/calibre/customize/ui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/customize/ui.py b/src/calibre/customize/ui.py index f4ae5dbf60..7dcd4f6e9e 100644 --- a/src/calibre/customize/ui.py +++ b/src/calibre/customize/ui.py @@ -165,7 +165,7 @@ def _run_filetype_plugins(path_to_file, ft=None, occasion='preprocess'): except Exception: pass try: - nfp = plugin.run(path_to_file) or path_to_file + nfp = plugin.run(nfp) or nfp except: print >>oe, 'Running file type plugin %s failed with traceback:'%plugin.name traceback.print_exc(file=oe)