Open pimzand opened 10 months ago
Hey, sorry for the delay. We currently use the Zero-width space char (U+200b) as a path separator for cover art paths. This is the root cause of the issue.
In the new Scanner (#2709), I'm using JSON lists to store lists in the DB, so this will be solved.
Interesting choice from your CD ripping program... Usually when a program needs to escape the .
in the last char, it is replaced with _
:
Anyway, the only workaround for now is to remove such chars from the file/dir names.
Thanks for finding the cause. I will be happy to wait for a build that fixes this. My CD ripping program https://github.com/jack-cli-cd-ripper/jack/ allows me to configure what to do with trailing dots using regex replacements. I chose U+200b myself because it does not visually change the name of the artist or album.
This issue has been automatically marked as stale because it has not had recent activity. The resources of the Navidrome team are limited, and so we are asking for your help.
If this is a bug and you can still reproduce this error on the master
branch, please reply with all of the information you have about it in order to keep the issue open.
If this is a feature request, and you feel that it is still relevant and valuable, please tell us why.
This issue will automatically be closed in the near future if no further activity occurs. Thank you for all your contributions.
This will be fixed in the BFR: #2709
If there is already a fix place with #2709 that addresses this issue, can you please mark the project status as Done for this issue?
I confirm that:
Version
0.50.2-1.fc39 (source_archive)
Current Behavior
When any part of the path ends with Unicode character U+200B (Zero Width Space), no cover art will be shown for that music.
Expected Behavior
Any path valid for storing music files should also be valid for storing cover art files.
Steps To Reproduce
1, create a folder ending with U+200B. Populate it with valid content; in my case .flac files and a folder.jpg cover art file
Environment
How Navidrome is installed?
Package
Configuration
Relevant log output
Anything else?
In all the error messages above, the first part of the path is missing. These are all R.E.M. albums, which are located in folder /music/main/R.E.M.(U+200B) The U+200B character was appended by my CD ripping program, to prevent creating folders that end with a dot, which would be illegal in Microsoft Windows, making it impossible to share the folder with Windows clients.
Code of Conduct