path fixes for win

This commit is contained in:
2023-03-16 10:05:05 +01:00
parent 147a6b5f38
commit e1a6181edc

View File

@@ -40,6 +40,9 @@ class Handler:
else:
print("OS CURRENTLY UNSUPPORTED!")
return False
if ( self.os_type == 'win32' ):
self.tmppath += '\\fsru\\'
else:
if ( self.tmppath[len(self.tmppath) - 1: ] == '/' ):
self.tmppath += "fsru/"
else:
@@ -115,7 +118,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"ffmpeg -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
@@ -130,6 +133,9 @@ class Handler:
self.number = 0
for self.file in self.filelist:
self.number += 1
if ( self.os_type == 'win32' ):
self.files += f"{self.tmppath}{self.file} {self.tmppath}sc\\ig{str(self.number).zfill(8)}.png "
else:
self.files += f"{self.tmppath}{self.file} {self.tmppath}sc/ig{str(self.number).zfill(8)}.png "
self.maxlength = 31900
self.pos = 1