From 77fee5f5dabfbea2289703b79dc3221a2808efe1 Mon Sep 17 00:00:00 2001 From: Janis Hutz <98422316+simplePCBuilding@users.noreply.github.com> Date: Thu, 16 Mar 2023 09:50:54 +0000 Subject: [PATCH] Update handler.py possible fix for upscaling images command --- bin/handler.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/bin/handler.py b/bin/handler.py index 8337472..91c7619 100644 --- a/bin/handler.py +++ b/bin/handler.py @@ -173,7 +173,6 @@ class Handler: while self.files[self.posy - self.pos:self.posy - self.pos + 1] != " ": self.pos += 1 self.file_processing = self.files[self.posx:self.posy - self.pos] - print(self.file_processing[len(self.file_processing) - 14:len(self.file_processing) - 12]) if self.file_processing[len(self.file_processing) - 14:len(self.file_processing) - 12] == "ex": self.pos += 5 else: @@ -203,22 +202,22 @@ class Handler: self.files_handle = self.fileout.pop(0) if quality_mode == "default": if self.os_type == "linux": - self.command = f"wine {fsrpath} -QualityMode {quality_setting} {self.files_handle}" + self.command_us = f"wine {fsrpath} -QualityMode {quality_setting} {self.files_handle}" elif self.os_type == "win32": - self.command = f"FidelityFX_CLI -QualityMode {quality_setting} {self.files_handle}" + self.command_us = f"FidelityFX_CLI -QualityMode {quality_setting} {self.files_handle}" else: print("OS CURRENTLY UNSUPPORTED!") return False else: if quality_mode == "default": if self.os_type == "linux": - self.command = f"wine {fsrpath} -Scale {quality_setting} {self.files_handle} {self.tmppath}" + self.command_us = f"wine {fsrpath} -Scale {quality_setting} {self.files_handle} {self.tmppath}" elif self.os_type == "win32": - self.command = f"FidelityFX_CLI -Scale {quality_setting} {self.files_handle} {self.tmppath}" + self.command_us = f"FidelityFX_CLI -Scale {quality_setting} {self.files_handle} {self.tmppath}" else: print("OS CURRENTLY UNSUPPORTED!") return False - os.system(self.command) + os.system(self.command_us) time.sleep(3) # get Video's audio