Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


MPD command missing ?
#7
@electroremy

Here's what the docs say about listfiles

Quote:Lists the contents of the directory URI, including files are not recognized by MPD. URI can be a path relative to the music directory or an URI understood by one of the storage plugins. The response contains at least one line for each directory entry with the prefix “file: ” or “directory: “, and may be followed by file attributes such as “Last-Modified” and “size”.

So, now the question is "what is the music directory?" In moOde's case, it is /var/lib/mpd/music. Here's what's in mine:

Code:
pi@moode:/var/lib/mpd/music $ ls
NAS  RADIO  SDCARD  UPNPminim  USB


Using the MPD protocol I can ask for a listing of a particular subdirectory on the particular USB thumbdrive which is plugged into this player:

Code:
telnet moode.local 6600
Trying 192.168.4.26...
Connected to moode.local.
Escape character is '^]'.
OK MPD 0.22.4
listfiles USB/MUSIC/JAZZ
directory: Bob Schwartz Quartet-Look for the Silver Lining
Last-Modified: 2019-08-21T21:09:30Z
directory: Bob Schwartz Quartet-Taint whatcha do
Last-Modified: 2019-08-21T21:09:54Z
directory: Miles Davis & Quincy Jones-Miles & Quincy Live at Montreux
Last-Modified: 2019-08-22T16:48:06Z
directory: Greg Harrison Jazz Band - Volume 2
Last-Modified: 2019-05-04T11:42:46Z
directory: Larry Coryell-The Eleventh House
Last-Modified: 2019-08-31T21:59:20Z
file: temp.tar
size: 353597440
Last-Modified: 2020-08-13T21:22:58Z
OK

Regards,
Kent
Reply


Messages In This Thread
MPD command missing ? - by electroremy - 03-06-2021, 07:31 PM
RE: MPD command missing ? - by TheOldPresbyope - 03-06-2021, 07:53 PM
RE: MPD command missing ? - by electroremy - 03-07-2021, 02:13 PM
RE: MPD command missing ? - by TheOldPresbyope - 03-07-2021, 04:51 PM
RE: MPD command missing ? - by vinnn - 03-07-2021, 05:02 PM
RE: MPD command missing ? - by electroremy - 03-11-2021, 05:59 PM
RE: MPD command missing ? - by TheOldPresbyope - 03-11-2021, 07:20 PM
RE: MPD command missing ? - by electroremy - 03-14-2021, 07:32 PM

Forum Jump: