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