CommunityScripts icon indicating copy to clipboard operation
CommunityScripts copied to clipboard

renamerOnUpdate Checksum, oshash options not working.

Open mcortez opened this issue 1 year ago • 1 comments

A working fix was posted to discord by another user -- the checksum and oshash fields aren't being replaced.

https://discord.com/channels/559159668438728723/742220889017417738/1222363718785044592

mcortez avatar Mar 30 '24 20:03 mcortez

bump Fix from Discord worked for me.

For the record:

old

        for f in scene_file["fingerprints"]:
            if f.get("oshash"):
                stash_scene["oshash"] = f["oshash"]
            if f.get("md5"):
                stash_scene["checksum"] = f["md5"]
            if f.get("checksum"):
                stash_scene["checksum"] = f["checksum"]

fixed

        for f in scene_file["fingerprints"]:
            if f.get("type") == "oshash":
                stash_scene["oshash"] = f["value"]
            if f.get("type") == "md5":
                stash_scene["checksum"] = f["value"]
            if f.get("type") == "checksum":
                stash_scene["checksum"] = f["value"]

Sadarex avatar Jul 31 '24 18:07 Sadarex