Projet

Général

Profil

Révision 829bab48

ID829bab4814b568b58ea917622d3a278fb390b765
Parent a45257a6
Enfant 9ad3b1ff

Ajouté par ToM il y a presque 5 ans

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

Voir les différences:

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