fix randomizing ids errors with plist updating

This commit is contained in:
leminlimez
2025-03-17 17:55:12 -04:00
parent 23390f48e5
commit d859cd6911
3 changed files with 7 additions and 6 deletions

View File

@@ -16,7 +16,7 @@ class PosterboardTweak(Tweak):
def update_plist_id(self, file_path: str, file_name: str, randomizedID: int):
if file_name == "com.apple.posterkit.provider.descriptor.identifier":
return randomizedID.to_bytes()
return str(randomizedID).encode()
elif file_name == "com.apple.posterkit.provider.contents.userInfo":
return set_plist_value(file=os.path.join(file_path, file_name), key="wallpaperRepresentingIdentifier", value=randomizedID)
elif file_name == "Wallpaper.plist":