CommunityScripts icon indicating copy to clipboard operation
CommunityScripts copied to clipboard

[renamerOnUpdate] Scenes with a empty tag value get renamed <nothing>.ext

Open Traxey opened this issue 2 months ago • 0 comments

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 :)

Traxey avatar Apr 28 '24 03:04 Traxey