mirror of
https://github.com/Sonarr/Sonarr.git
synced 2026-03-02 22:57:43 -05:00
Naming Format space replacement doesn't work #4913
Labels
No labels
1%
blocked-by: skyhook
bug
connection
discussion
docs
download-client
enhancement
external-bug
indexer
missing-description
mono-bug
naming
needs-to-be-tested
needs-triage
one-day-maybe
parsing
platform: linux
platform: macos
platform: windows
priority:high
priority:low
priority:medium
priority:medium
proposal
skyhook/services
suboptimal
support
task
ui-only
up-for-grabs
v3
v4
waiting-for-contributor
waiting-for-info
wip
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Sonarr#4913
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @spanasiuk on GitHub (Feb 1, 2024).
Is there an existing issue for this?
Current Behavior
When I specify space replacement for naming formats, it doesn't change anything.
Expected Behavior
When I specify that spaces in the name should be replaced with the period, it should allow me to save the change and when I rename the file, all spaces (even the ones in the title) should be replaced with the period (or other separator)
Steps To Reproduce
Open Settings -> Media Management;
Press the blue question mark button next to any of the custom name formats:

Change from

Space ( )toPeriod (.):Observe that there's no way to save the change. If you also try to change other fields, the space replacement doesn't persist;
Try making the PUT request at
https://sonarr.host/api/v3/config/namingwith the body:replaceSpacesin the request body wastrue, the response contains"replaceSpaces": falseEnvironment
What branch are you running?
Main
Trace Logs?
sonarr.trace.txt
Anything else?
The same issue is present in Radarr.
I'm using the
ghcr.io/hotio/sonarrdocker image.@markus101 commented on GitHub (Feb 1, 2024):
That dropdown changes new tokens you add to the naming format to use a
.instead of, but existing tokens are not changed. You need to change you existing tokens to use periods instead of spaces.In this case the API docs are incorrectly showing that properties from v2 are still available and will need to be removed.
All these properties no longer exist:
@spanasiuk commented on GitHub (Feb 1, 2024):
@markus101 thanks for the reply! It took me some time to understand what exactly you mean by that, but now I get it - I need to add the separator in the tokens I have. Awesome, thanks a lot!