CommunityScripts icon indicating copy to clipboard operation
CommunityScripts copied to clipboard

renamerOnUpdate (ROU) renames a file as duplicate when updating performers

Open thedesi1 opened this issue 1 year ago • 3 comments

When updating/adding performers for a scene, the ROU renames the files with trailing _1 or generically _n

thedesi1 avatar Feb 16 '24 20:02 thedesi1

That is an intentional feature, as far as I know.

From the config

# word attached at end if multiple file for same scene [FileRefactor]
duplicate_suffix = ["", "_1", "_2", "_3", "_4", "_5", "_6", "_7", "_8", "_9", "_10"]

DogmaDragon avatar Feb 25 '24 14:02 DogmaDragon

Exactly, when multiple files - the bug is if you change a attribute that is not part of the rename i.e. $studio - $date - $title in my case performers, the RoU just append _1 to existing files, when only 1 file exists.

thedesi1 avatar Feb 25 '24 15:02 thedesi1

Also, although I cant prove it, but I am certain that this bug was introduced when this plugin was moved to the new plugin architecture. Because I use this feature for finding dupes that can not be found with phash (mylfx and teamskeetx scenes etc) and recently I have 100's of scene with appended _1 because I updated a lot of performers for those scenes.

thedesi1 avatar Feb 25 '24 15:02 thedesi1