[BUG]: Leading ellipsis for nested folder names replaced with dot on import #2371
Labels
Area: Organizer
Issue is related to the Organizer
Type: Bug
Issue is a bug
Type: Enhancement
Current situation is suboptimal and could use improvement.
Is there an existing issue for this?
Current Behavior
I saw this issue was reported and fixed before in #604, but I think it was probably reintroduced with the recently added nested path feature.
Using a track format such as:
When importing an album with the name
...My Album...
, it gets renamed to:Expected Behavior
Despite the name being a bit weird, the main issue is that the leading dot of course causes the album folder to be viewed as hidden, and ultimately ignored by Lidarr on re-scan (and also other software such as Jellyfin).
Steps To Reproduce
No response
Environment
What branch are you running?
Master
Anything else?
I think that calling
CleanFolderName
instead of using theFileNameCleanupRegex
directly here would at least solve the hidden file issue:Lidarr/src/NzbDrone.Core/Organizer/FileNameBuilder.cs
Line 134 in 187672b
I also noticed that Radarr previously had a similar issue and introduced a test case, which may be a good idea to prevent reoccurrence: Radarr/Radarr@b336cb0
AB#1483
The text was updated successfully, but these errors were encountered: