diff --git a/bin/__pycache__/handler.cpython-311.pyc b/bin/__pycache__/handler.cpython-311.pyc index 81aa301..62915c6 100644 Binary files a/bin/__pycache__/handler.cpython-311.pyc and b/bin/__pycache__/handler.cpython-311.pyc differ diff --git a/bin/engines/ss/ss.py b/bin/engines/ss/ss.py index 75ccfee..938670c 100644 --- a/bin/engines/ss/ss.py +++ b/bin/engines/ss/ss.py @@ -23,6 +23,7 @@ class Scaler: os.system( self.command ) print( '\n\n==>Photo upscaled' ); + return True; def videoScaler ( self, tmppath, threads, scalefactor, sharpening, filetype, mode ): modes = { 'av3':'realesr-animevideov3', 'x4plus': 'realesrgan-x4plus-anime' } diff --git a/bin/handler.py b/bin/handler.py index 9d6d66b..25fafa8 100755 --- a/bin/handler.py +++ b/bin/handler.py @@ -86,10 +86,10 @@ class Handler: # Determining filetype if str(filepath)[len(filepath) - 4:] == '.mp4' or str(filepath)[len(filepath) - 4:] == '.mkv' or str(filepath)[len(filepath) - 4:] == '.MP4': print( '\n\n==> Upscaling video' ) - self.video_scaling( filepath, output_path, scalefactor, threads, sharpening, filetype, mode, engine ) + return self.video_scaling( filepath, output_path, scalefactor, threads, sharpening, filetype, mode, engine ) elif str(filepath)[len(filepath) - 4:] == '.JPG' or str(filepath)[len(filepath) - 4:] == '.png' or str(filepath)[len(filepath) - 4:] == '.jpg' or str(filepath)[len(filepath) - 5:] == '.jpeg': print( '\n==> Upscaling Image' ) - self.photo_scaling( filepath, output_path, scalefactor, sharpening, threads, engine, mode ) + return self.photo_scaling( filepath, output_path, scalefactor, sharpening, threads, engine, mode ) else: print('not supported') return False diff --git a/frontend/src/App.vue b/frontend/src/App.vue index 8e8ecaa..e7ae4b9 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -1,8 +1,9 @@