New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hyphens created with incorrect unicode character, causing compatibility issues #4783
Comments
You need to provide trace logs in text format. Also share the output of |
LANG=en_US.UTF-8 I took the tracks, put them in a folder for manual import, and then imported them. After found, I went to the folder, and literally replaced the hyphen with a hyphen (in Windows). Went back to the path, did a refresh and it didn't see the files anymore. |
You're editing filenames outside of Lidarr? Why do you think this is an issue caused by Lidarr? |
No, the folder/file names are created by Lidarr using the incorrect encoding. That creates certain characters, such as "Hyphen", rather than "Hyphen-Minus". If you read up on https://en.wikipedia.org/wiki/ISO/IEC_8859-1 and subsequently, Lidarr doesn't use U+002D for hyphen, it uses U+2010. All other systems generally use U+002D, and are compatible |
I have a hard time understanding what you're doing here when you said you're editing file paths and now you saying you don't. |
The files and paths were created by Lidarr. I replaced a hyphen with a hyphen. This because Lidarr is looking for the wrong hyphen, it thinks the files are gone.
|
In Windows as in using a NFS mount to view and edit paths, correct? Maybe it's a samba character encoding issue in your case? I hope you understand that your steps to reproduce aren't quite as described. |
The screenshot I shared was from Linux.
|
Is there an existing issue for this?
Current Behavior
When creating hyphens, the wrong encoding is used. (Should be Hyphen-Minus.) This creates compatibility issues with items which have a hyphen in the name. I believe this is related to #3371.
Subsequently, when a "-" from other systems is used, Lidarr doesn't recognize them.
Expected Behavior
hyphen-minus should be used in place of hyphen
Steps To Reproduce
import an artist with a hyphen in the name. (blink182, lin-manuel miranda, B-52s, etc.) Use fake tracks if needed for proper effect.
Attempt to view them in an ubuntu/bash shell
ls -d blink*
It will show 'blink□182' with a square box. (if you copy/paste into any other OS, it displays it.)
If you edit the artist name and use the proper hyphen, Lidarr no longer recognizes the content.
Environment
What branch are you running?
Master
Trace Logs?
Trace Logs have been provided as applicable. Reports may be closed if the required logs are not provided.
trace
- that are relevant and show this issue.The text was updated successfully, but these errors were encountered: