Confused. Using mpc to add mp3 files to the current playlist


#1

Hi there,

I have an issue I just don’t understand. I run mopidy with mpc and MPDroid.

I have some MP3s in my Music dir, and I have run mopidy local scan.

I can play the MP3s when I access Mopidy with MPDroid on my phone, however, if I use mpc like

mpc add Music/*.mp3 it just returns error adding 1.mp3: directory of file not found
mpc can see the file 1.mp3 - obviously - but it cannot play the file, even 1.mp3 is -rwxrwxrwx

mpc in general works with mopidy as long as I only use spotify URIs

Anyone can help my stupid brain here? Thanks!


#2

mpc add <file> takes a file URI which it passes to Mopidy. Mopidy has no idea what "Music/*.mp3` means.

Use mpc ls to browse and get an understanding of Mopidy URIs. For example:

$ mpc ls
Files
Local media
SoundCloud
Spotify
some_playlist

$ mpc ls "Local media"
local:track:1.mp3
local:track:2.mp3

$ mpc add local:track:1.mp3

Or just use a full client like MPDroid which hides this from you.


#3

Thank you for enlighting me and all your effort you put into this project and it’s support! :slight_smile: Where is the donate button? :slight_smile:


#4

As I am sure you realised I accidentally put “mpd ls” above so I have now corrected that to mpc.

We don’t have a means to accept monetary contributions but we gladly accept other forms. Alternatively, please consider taking your business to one of our kind sponsors.