From ad64287a8ae104d9bca9a4a40de8d0f9ca7eea82 Mon Sep 17 00:00:00 2001 From: janis Date: Fri, 9 Jun 2023 09:52:43 +0200 Subject: [PATCH] make cli output better --- bin/__pycache__/handler.cpython-311.pyc | Bin 11137 -> 11141 bytes bin/engines/ffc/ffc.py | 1 + bin/handler.py | 2 +- 3 files changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/__pycache__/handler.cpython-311.pyc b/bin/__pycache__/handler.cpython-311.pyc index faec4af3e50d234356999115b7d2ece7a1f2fde9..f7525e77919a71bae0f94e046adf9d74c3c961d7 100644 GIT binary patch delta 121 zcmZn+Zw=>N&dbZi00g&hG^HeM-?sd z_)Rxd9k9L-5Pcyw{X%BJg`%l}KQIP^Af?eIP!eIYF2LQ>|1?EDLbrB@1TFLKmh;i$g=Lz}~d=8N$i_@% diff --git a/bin/engines/ffc/ffc.py b/bin/engines/ffc/ffc.py index ff846b2..efbd4df 100644 --- a/bin/engines/ffc/ffc.py +++ b/bin/engines/ffc/ffc.py @@ -47,6 +47,7 @@ class Scaler: os.system( self.command ) print( '\n\n==> Photo upscaled' ); + return True def videoScaler ( self, tmppath, threads, scalefactor, sharpening, filetype, mode ): self.isScaling = True diff --git a/bin/handler.py b/bin/handler.py index 650545d..4d67a42 100755 --- a/bin/handler.py +++ b/bin/handler.py @@ -96,7 +96,7 @@ class Handler: def photo_scaling(self, input_path, output_path, scalefactor, sharpening, threads, engine, mode ): # DO NOT CALL THIS! Use Handler().handler() instead! - importedModules[ engine ].singleScaler( input_path, output_path, scalefactor, sharpening, threads, mode, self.tmppath ); + return importedModules[ engine ].singleScaler( input_path, output_path, scalefactor, sharpening, threads, mode, self.tmppath ); def video_scaling( self, input_path, output_path, scalefactor, threads, sharpening, filetype, mode, engine ): self.engineSetting = json.load( open( 'bin/engines/' + engine + '/config.json' ) )