Kid3-cli Can't Set Artist or Title With a Space Character?

Strange issue with kid3-cli. I can’t add an artist tag to an mp3 file using:

(base) sarah@MidnightStarSign:~/Music/Indexing/Temp$ kid3-cli -c "tag 1" -c "set artist "Unfinished Cathedral"" DAN\ TERMINUS\ -\ Unfinished\ Cathedral.mp3 
Cathedral, DAN TERMINUS - Unfinished Cathedral.mp3 does not exist
(base) sarah@MidnightStarSign:~/Music/Indexing/Temp$ ls
'DAN TERMINUS - Unfinished Cathedral.mp3'

Which is very strange, since If I take out the space, it works fine. If I use the graphical version of kid3 and add the proper Artist and Title with spaces, it works fine in the same tag field.

For example, this works, and can be seen in the tags:

(base) sarah@MidnightStarSign:~/Music/Indexing/Temp$ kid3-cli -c "tag 1" -c "set artist "Unfinished"" DAN\ TERMINUS\ -\ Unfinished\ Cathedral.mp3

Is this a bug?

Hi @Sarah,

I’m by no means an expert, but try escaping the quotes inside the command. So instead of this:

kid3-cli -c "tag 1" -c "set artist "Unfinished Cathedral"" DAN\ TERMINUS\ -\ Unfinished\ Cathedral.mp3 

Try:

kid3-cli -c "tag 1" -c "set artist \"Unfinished Cathedral\"" DAN\ TERMINUS\ -\ Unfinished\ Cathedral.mp3

Alternatively, you could try this:

kid3-cli -c "tag 1" -c "set artist 'Unfinished Cathedral'" DAN\ TERMINUS\ -\ Unfinished\ Cathedral.mp3 

Hope this helps!

The last command actually worked surprisingly.

Thanks for the post!

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.