mirror of
https://github.com/Radarr/Radarr.git
synced 2026-03-02 22:57:34 -05:00
{Movie CleanTitle} does not always remove single quotes ' from titles #5348
Labels
No labels
Area: API
Area: Database
Area: Db-migration
Area: Download Clients
Area: Extras
Area: Import Lists
Area: Indexer
Area: Metadata API
Area: Notifications
Area: Organizer
Area: Parser
Area: Scanning
Area: Tooling
Area: UI
Area: Unit Tests
On Hold: MetadataAPI Blocking
On Hold: MetadataAPI Blocking
Priority: High
Priority: Low
Priority: Medium
Status: Accepted
Status: Cannot Reproduce
Status: Confirmed
Status: Help Wanted
Status: In Progress
Status: Indexer - need invite
Status: Info Needed
Status: Investigating
Status: Logs Needed
Status: Maybe One Day
Status: Needs Triage
Status: On Hold
Status: Ready for Review
Status: Unlikely
Status: Waiting for OP
Status: Won't Fix
Type: Bug
Type: Documentation
Type: Duplicate
Type: Enhancement
Type: External Bug
Type: Feature Request
Type: Regression
Type: Support
Type: Support.
conflict
lidarr-pull
no-conflict
not-pulled
readarr-pull
readarr-pull
sonarr upstream
sonarr-pull
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Radarr#5348
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 @drpeppershaker on GitHub (Dec 27, 2020).
Describe the bug
When using {Movie CleanTitle} in the naming scheme for movie format or folder format, single quotes are not always removed. It appears that if the single quote is at the beginning of a word in the title the single quote will stay, but if it is in the middle of a movie title it will remain.
Example:
Bill & Ted's Bogus Journey will correctly become Bill and Teds Bogus Journey.
However,
Trick 'r Treat will remain Trick 'r Treat
and
Hang 'em High will remain Hang 'em High
To Reproduce
Steps to reproduce the behavior:
Expected behavior
{Movie CleanTitle} should produce file and folder names with no special characters.
Screenshots

Platform Information (please complete the following information):
Version
3.0.1.4259
Package Version
3.0.1.4259-1 by radarr
.NET Core
Yes (3.1.10)
Docker
Yes
DB Migration
188
AppData directory
/config
Startup directory
/usr/lib/radarr/bin
Mode
Console
Trace Logs
Turn on Trace logs under Settings -> General and wait for the bug to occur again. Upload the full log file here (or another site (e.g. pastebin) and link it). Issues will be closed, if they do not include this!
https://pastebin.com/3sMc8KjF
AB#740
@stale[bot] commented on GitHub (Jan 8, 2022):
This issue has been automatically marked as stale because it has not had recent activity. Please verify that this is still an issue with the latest version of Radarr and report back. Otherwise this issue will be closed.
@rjorgenson commented on GitHub (Jun 26, 2022):
I also have this issue with some files. Here is an example of radarr trying to re-add the single quote that I removed from the files on disk along with my movie naming settings. If you need more information about this let me know and I can do whatever testing is needed. On Radarr version
4.1.0.6175as of right now but that has been a persistent problem for me for a while. I've included the debug output of performing the rename on this file below as well.@dglava commented on GitHub (Jul 15, 2023):
I am also experiencing this issue. It's not just affecting films which have the quotes at the beginning or end of a word. I'm getting it on films which have the quotes in the middle of a word as well.
My naming scheme:
The resulting name (with unwanted quote):
The folder name also has the quote, despite using the CleanTitle there as well in the naming scheme.
Trace logs (from the point of adding the film up to importing it manually):
https://privatebin.net/?5e3ed1cdf1d73eb3#7o3bDE9J7xDL2osN5tknj5VizHo6pj3dnjQjCWn4zotA
Some films have their quotes correctly stripped. What's so special about this one? I have another one in my library which has this issue as well: Don't Look Up (2021).
@bakerboy448 commented on GitHub (Jul 18, 2023):
is the regex for what characters get removed so

's;I'm;'; and'<end of title>https://regex101.com/r/Pqd6eO/1
Bug => Feature Request