possible fix for error
This commit is contained in:
@@ -45,7 +45,10 @@ class Handler:
|
|||||||
else:
|
else:
|
||||||
print("OS CURRENTLY UNSUPPORTED!")
|
print("OS CURRENTLY UNSUPPORTED!")
|
||||||
return False
|
return False
|
||||||
self.tmppath += "fsru/"
|
if ( self.tmppath[len(self.tmppath) - 1: ] == '/' ):
|
||||||
|
self.tmppath += "fsru/"
|
||||||
|
else:
|
||||||
|
self.tmppath += '/fsru/'
|
||||||
self.ffmpegpath = config["PathSettings"]["ffmpeg"]
|
self.ffmpegpath = config["PathSettings"]["ffmpeg"]
|
||||||
# checking for spaces in filepath (for use with terminal commands)
|
# checking for spaces in filepath (for use with terminal commands)
|
||||||
self.filepath = ""
|
self.filepath = ""
|
||||||
@@ -85,9 +88,7 @@ class Handler:
|
|||||||
self.command = f"{fsrpath} -Scale {quality_setting} {quality_setting} {self.filepath} {output_path}"
|
self.command = f"{fsrpath} -Scale {quality_setting} {quality_setting} {self.filepath} {output_path}"
|
||||||
else:
|
else:
|
||||||
print("OS CURRENTLY UNSUPPORTED!")
|
print("OS CURRENTLY UNSUPPORTED!")
|
||||||
return False
|
return False
|
||||||
print( self.command )
|
|
||||||
|
|
||||||
os.system(self.command)
|
os.system(self.command)
|
||||||
print("photo upscaled")
|
print("photo upscaled")
|
||||||
|
|
||||||
@@ -120,7 +121,7 @@ class Handler:
|
|||||||
print("linux")
|
print("linux")
|
||||||
self.command = f"ffmpeg -i {str(self.filepath)} {self.tmppath}ex%08d.png"
|
self.command = f"ffmpeg -i {str(self.filepath)} {self.tmppath}ex%08d.png"
|
||||||
elif self.os_type == "win32":
|
elif self.os_type == "win32":
|
||||||
self.command = f"{ffmpegpath} -i {str(self.filepath)} {self.tmppath}ex%08d.png"
|
self.command = f"ffmpeg -i {str(self.filepath)} ${self.tmppath}ex%08d.png"
|
||||||
else:
|
else:
|
||||||
print("OS CURRENTLY UNSUPPORTED!")
|
print("OS CURRENTLY UNSUPPORTED!")
|
||||||
return False
|
return False
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
[PathSettings]
|
[PathSettings]
|
||||||
defaultOutputPath = $HOME/FSRImageVideoUpscaler/
|
defaultOutputPath = $HOME/FSRImageVideoUpscaler/
|
||||||
tmpPathLinux = /tmp/
|
tmpPathLinux = /tmp/
|
||||||
tmpPathWindows = temp
|
tmpPathWindows = C:\temp
|
||||||
ffmpeg = ./bin/lib/ffmpeg.exe
|
|
||||||
|
|
||||||
[DevSettings]
|
[DevSettings]
|
||||||
loggerReqLevel = DEBUG
|
loggerReqLevel = DEBUG
|
||||||
Reference in New Issue
Block a user