mirror of
https://github.com/leminlimez/Nugget.git
synced 2025-04-08 04:23:05 +08:00
Merge branch 'main' into pb-video
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user