trembon / switch-library-manager

Complete solution to manage, organize and keep your local switch backup game library up to date . Cross platform, supports all game formats.
MIT License
70 stars 4 forks source link

Extra Space Being Created When Renaming #22

Closed harvestry-of-ghosts closed 6 months ago

harvestry-of-ghosts commented 6 months ago

I have the following line in the config for renaming files: "file_name_template": "{TITLE_NAME} [{TITLE_ID}] [{TYPE}] [{DLC_NAME}] [v{VERSION}] [v{VERSION_TXT}] [{REGION}]"

This results in: Bayonetta 2 [01007960049A0000] [v0] [v1.0] [US].nsp (There are 2 spaces between the title id and version after renaming, but the extra space is being auto-corrected/removed when I submit the post here)

Note The extra space is NOT created when renaming updates or DLC. It ONLY happens with the main game nsps and ONLY when both {TYPE} & {DLC_NAME} are used next to each other anywhere in the string.

trembon commented 6 months ago

seems like a weird behavior, i will take a look at it when possible

harvestry-of-ghosts commented 6 months ago

seems like a weird behavior, i will take a look at it when possible

Thanks. I have updated the note at the end of the op to better reflect the circumstances in which the extra space is added.

trembon commented 6 months ago

at the end of generating the new file name when organizing all double spaces was replaced with a single spaces, but your scenario ends up with 3+ spaces in a row so this only gets fixed half way it is now fixed so all extra spaces should now get replaced with a single space (you can get the latest build from the Actions tab)

harvestry-of-ghosts commented 6 months ago

Thank you. Works great. :)