diff --git a/bin/__pycache__/handler.cpython-311.pyc b/bin/__pycache__/handler.cpython-311.pyc index faec4af..f7525e7 100644 Binary files a/bin/__pycache__/handler.cpython-311.pyc and b/bin/__pycache__/handler.cpython-311.pyc differ 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' ) )