Moode Forum
mpc update [<path>] - Printable Version

+- Moode Forum (https://moodeaudio.org/forum)
+-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3)
+--- Forum: Support (https://moodeaudio.org/forum/forumdisplay.php?fid=7)
+--- Thread: mpc update [<path>] (/showthread.php?tid=6334)



mpc update [<path>] - vikozo - 03-17-2024

update [--wait] [<path>]

would this command be working
mpc update [/mnt/NAS/fs-14-musik/musik/b/Bruce]
mpc update [/mnt/NAS/fs-14-musik/musik/N/Nick]


Bruce is Bruce springsteen
Nick for Nick Cave

will i have to add a * after Bruce ?

and what is -wait doing


have a nice day
vinc


RE: mpc update [<path>] - TheOldPresbyope - 03-18-2024

(03-17-2024, 06:23 PM)vikozo Wrote: update [--wait] [<path>]

would this command be working
mpc update [/mnt/NAS/fs-14-musik/musik/b/Bruce]
mpc update [/mnt/NAS/fs-14-musik/musik/N/Nick]


Bruce is Bruce springsteen
Nick for Nick Cave

will i have to add a * after Bruce ?

and what is -wait doing


have a nice day
vinc

1) Keep in mind that album coverart is not managed by mpd so mpc update won't add the coverart forĀ albums added to the moOde library.

2) mpc update doesn't perform the update; rather it tells mpd to. The time it takes mpd to complete the update is indeterminable. If the --wait option is used, then mpc will not return until mpd is done; otherwise it will return immediately. The distinction may or may not matter, depending on how mpc is being used in a script.

3) the <path> has to be a complete Linux path. If the directory in question is named "Bruce Springsteen" the path given to mpc will have to say so. You could use a backslash to protect the space; include the entire path in quotation marks; or, if you're sure there's no other
"Bruce..." directories, use the wildcard asterisk after "Bruce". This is all just Linux shell syntax.

Regards,
Kent