Révision 829bab48
mdpstats_: use 'stats' instead of 'version' in autoconf.
As of v0.21.4 version of the MPD command protocol, it seems that the
`version` command is not valid:
$ echo version | /bin/nc localhost 6600
OK MPD 0.21.4
ACK [5@0] {} unknown command "version"
Use `stats` instead.
https://www.musicpd.org/doc/html/protocol.html#querying-mpd-s-status
| plugins/mpd/mpdstats_ | ||
|---|---|---|
| 83 | 83 |
do_autoconf () {
|
| 84 | 84 |
if [ -z "$NCBIN" ] ; then |
| 85 | 85 |
echo "no (missing netcat program ('nc'))"
|
| 86 |
elif ! echo version | "$NCBIN" "$MPDHOST" "$MPDPORT" >/dev/null 2>&1; then
|
|
| 86 |
elif ! echo stats | "$NCBIN" "$MPDHOST" "$MPDPORT" >/dev/null 2>&1; then
|
|
| 87 | 87 |
echo "no (connection failed)" |
| 88 | 88 |
else |
| 89 | 89 |
echo "yes" |
Formats disponibles : Unified diff