Hi,

I've been having issues recently with my scripts where mpd will stop
after playing each song. The logs aren't helping much (both --verbose
and log_level "verbose"). I see the songs being added and "mpc playlist"
shows them and the log mentions the songs, but nothing happens. Here's
one of my scripts (uses dmenu to choose an album then sets that album as
the playlist):

------- 8< --------
#!/bin/sh

COLORS="-nb black -nf gray50 -sb gray20 -sf orange -fn 
'xft:Terminus:pixelsize=12'"
DMENU="dmenu -i -l 10 -p Album:"

format="%albumartist%—%album%"

choice="$( mpc listall -f "$format" | grep -v -e '^music' | sort -u | $DMENU 
$COLORS )"

if ! [ $? -eq 0 ]; then
    exit 1
fi

artist="$( echo -n "$choice" | cut -d— -f 1 )"
album="$( echo -n "$choice" | cut -d— -f 2- )"

mpc clear
mpc random off
mpc findadd albumartist "$artist" album "$album"
mpc play
------- >8 --------

From some playing around, it seems that if I shutdown mpd (with ^C) and
then restart it after mpd stops after the first song, it starts in the
'paused' state with the first song as the 'current' and then plays on
happily until after the second song...where it stops again.

I'm using FreeBSD's musicpd port version 0.18.5. Looking at the user
changelog through 0.18.8, I don't see anything that would affect it (it
isn't crashing). All of my song filenames contain '—' as a separator
which is showing as \u2014 in the output, so parsing doesn't seem to be
an issue.

While I'm here, is there a reason 'listall' returns directories as well
as songs? Is that a bug?

Thanks,

--Ben
_______________________________________________
mpd-devel mailing list
[email protected]
http://mailman.blarg.de/listinfo/mpd-devel

Reply via email to