Update handler.py
fix command
This commit is contained in:
@@ -70,9 +70,9 @@ class Handler:
|
||||
# DO NOT CALL THIS! Use Handler().handler() instead!
|
||||
if quality_mode == "default":
|
||||
if self.os_type == "linux":
|
||||
self.command = f"wine {fsrpath} -QualityMode {quality_setting} {quality_setting} {self.filepath} {output_path}"
|
||||
self.command = f"wine {fsrpath} -QualityMode {quality_setting} {self.filepath} {output_path}"
|
||||
elif self.os_type == "win32":
|
||||
self.command = f"FidelityFX_CLI -QualityMode {quality_setting} {quality_setting} {self.filepath} {output_path}"
|
||||
self.command = f"FidelityFX_CLI -QualityMode {quality_setting} {self.filepath} {output_path}"
|
||||
else:
|
||||
print("OS CURRENTLY UNSUPPORTED!")
|
||||
return False
|
||||
@@ -205,17 +205,17 @@ class Handler:
|
||||
self.files_handle = self.fileout.pop(0)
|
||||
if quality_mode == "default":
|
||||
if self.os_type == "linux":
|
||||
self.command_us = f"wine {fsrpath} -QualityMode {quality_setting} {quality_setting} {self.files_handle}"
|
||||
self.command_us = f"wine {fsrpath} -QualityMode {quality_setting} {self.files_handle}"
|
||||
elif self.os_type == "win32":
|
||||
self.command_us = f"FidelityFX_CLI -QualityMode {quality_setting} {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 self.os_type == "linux":
|
||||
self.command_us = f"wine {fsrpath} -Scale {quality_setting} {quality_setting} {self.files_handle} {self.tmppath}"
|
||||
self.command_us = f"wine {fsrpath} -Scale {quality_setting} {quality_setting} {self.files_handle} {self.tmppath}"
|
||||
elif self.os_type == "win32":
|
||||
self.command_us = f"FidelityFX_CLI -Scale {quality_setting} {quality_setting} {self.files_handle} {self.tmppath}"
|
||||
self.command_us = f"FidelityFX_CLI -Scale {quality_setting} {quality_setting} {self.files_handle} {self.tmppath}"
|
||||
else:
|
||||
print("OS CURRENTLY UNSUPPORTED!")
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user