CommunityScripts
CommunityScripts copied to clipboard
[renamerOnUpdate] Scenes with a empty tag value get renamed <nothing>.ext
If a scene doesn't yet have a title(for example), it gets renamed to just .ext, this shouldn't be the case it should use the current filename or just skip it.
I propose something like this to fix it
# if new filename is an empty string skip it
if scene_information["new_filename"] == "":
log.LogWarning("This would result in an empty name, keeping {scene_information['current_filename']}")
continue
# check if there is already a file where the new path is
err = checking_duplicate_db(scene_information)
i cant see any problems with this, but id rather some one else take a look :)