Replies: 1 comment 2 replies
-
Problem solved. Two origins :
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using mpd+mpc on a Raspberry Pi 4 and controlling it directly via terminal or via Python script with python-mpd2. This works fine, but I have a problem with file names containing spaces (ex.: my file.flac), even with the most basic sequence:
mpc add my file.flac
mpc play
==> "mpd.base.CommandError: [50@0] {add} no such directory"
I know that in a Linux terminal you should avoid spaces, because they are considered separators between parameters, but there are still ways to use them, for example with square brackets ("my file.flac") or backslash (my\ file.flac). These "tricks" (and others I have found on Internet) do not work with mpc command lines. I always get the same comment : "mpd.base.CommandError: [50@0] {add} no such directory".
Of course, one possibility would be to replace all spaces with underscores (my_file.flac works), but I would have to do that every time I buy music on a platform... Not really practical.
==> are there any other solutions for using filenames with spaces with mpd + mpc ?
Alain
Beta Was this translation helpful? Give feedback.
All reactions