Skip to content
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

File path generation giving a space chr at end of "artist"\ #279

Open
janhal opened this issue May 28, 2023 · 3 comments
Open

File path generation giving a space chr at end of "artist"\ #279

janhal opened this issue May 28, 2023 · 3 comments

Comments

@janhal
Copy link

janhal commented May 28, 2023

On one cd the artist part of file path is padded with a ' ' in front of following ''. Raises an exception later.
2023-05-28

@ha-korth
Copy link

This appears to be an issue with the data stored in the database (CTDB). You should report to the database project https://github.com/gchudov/db.cue.tools/issues
The data was likely retrieved and duplicated from the old freedb while hosted by Magix (shut down March 31 2020).
You can see the space is included in the artist field in the CTDB database lYcNIiQQFNG6QWvSH1UwW_tWhWw-

@janhal
Copy link
Author

janhal commented May 29, 2023

Suggest to trim each path-part before concatenating:-)

@c72578
Copy link
Collaborator

c72578 commented Jun 13, 2023

Thanks for reporting the issue, when artist contains a trailing space.
The following exception occurs:
System.IO.DirectoryNotFoundException: Could not find a part of the path ...

This exception currently occurs here:

Directory.CreateDirectory(OutputDir);

Background:
A directory name that has trailing spaces cannot be created without using \\?\ at the beginning of the path.
Using such a UNC path in the output path would work around the exception, e.g.:
\\?\%music%\%artist%\[%year% - ]%album%\%artist% - %album%.cue

However, it is probably better to avoid trailing spaces in the artist or other fields.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants