Merge branch 'main' into pb-video

This commit is contained in:
leminlimez
2025-03-25 20:06:59 -04:00
6 changed files with 87 additions and 47 deletions

View File

@@ -204,7 +204,7 @@ class PosterboardTweak(Tweak):
def apply_tweak(self, files_to_restore: list[FileToRestore], output_dir: str):
def apply_tweak(self, files_to_restore: list[FileToRestore], output_dir: str, windows_path_fix: bool):
# unzip the file
if not self.enabled:
return
@@ -229,7 +229,7 @@ class PosterboardTweak(Tweak):
return
elif (self.tendies == None or len(self.tendies) == 0) and (self.videoThumbnail == None or self.videoThumbnail == None):
return
if os.name == "nt":
if os.name == "nt" and windows_path_fix:
# try to get past directory name limit on windows
output_dir = "\\\\?\\" + output_dir
self.create_live_photo_files(output_dir)