Open fossman opened 3 years ago
This seems related to #63. I noticed that it only occurs when adding files using the batch feature ("Add folder..."). Adding a single file with a # or ? in its filename does not cause any issues, however when the folder importer stumbles upon such files, it acts weird:
file://
. This should be removed.#
with a space in front of it, the space gets replaced with %20
. This should be replaced with a regular whitespace.#
, the rest of them - but not the first one - will be encoded as %23
. These should be replaced with #
.?
in the filename, all spaces in the file path will be replaced with %20
. These should be replaced with regular whitespaces.Knowing this, I was able to make soundKonverter work with my music collection by doing the following:
File
-> Save file list
.sed -i 's/file:\/\///; s/%20/ /g; s/%23/#/g' ~/.local/share/soundkonverter/filelist.xml
File
-> Load file list
.
Whenever there is a hash sign ( # ) or question mark ( ? ) the conversion from flac to MP3 fails.
By looking at the log, it seems that when building the command to execute in the first step, SoundKonverter ignores the rest of the filename or path where it finds the '?' character. So, later, it cant find the file name.
Here is the start of the related log:
You will notice that the first command truncates the filename:
It should be: