make cli output better

This commit is contained in:
janis
2023-06-09 09:52:43 +02:00
parent 9569e46b75
commit ad64287a8a
3 changed files with 2 additions and 1 deletions

View File

@@ -47,6 +47,7 @@ class Scaler:
os.system( self.command ) os.system( self.command )
print( '\n\n==> Photo upscaled' ); print( '\n\n==> Photo upscaled' );
return True
def videoScaler ( self, tmppath, threads, scalefactor, sharpening, filetype, mode ): def videoScaler ( self, tmppath, threads, scalefactor, sharpening, filetype, mode ):
self.isScaling = True self.isScaling = True

View File

@@ -96,7 +96,7 @@ class Handler:
def photo_scaling(self, input_path, output_path, scalefactor, sharpening, threads, engine, mode ): def photo_scaling(self, input_path, output_path, scalefactor, sharpening, threads, engine, mode ):
# DO NOT CALL THIS! Use Handler().handler() instead! # 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 ): def video_scaling( self, input_path, output_path, scalefactor, threads, sharpening, filetype, mode, engine ):
self.engineSetting = json.load( open( 'bin/engines/' + engine + '/config.json' ) ) self.engineSetting = json.load( open( 'bin/engines/' + engine + '/config.json' ) )