Coder Social home page Coder Social logo

Issue with client.status() about rust-mpd HOT 4 CLOSED

kstep avatar kstep commented on September 23, 2024
Issue with client.status()

from rust-mpd.

Comments (4)

kstep avatar kstep commented on September 23, 2024

Could you please run the following commands with telnet and show me output:

  • commands
  • replay_gain_status

To do it, run telnet 127.0.0.1 6600, then enter each command and press Enter.

Thank you!

from rust-mpd.

bchretien avatar bchretien commented on September 23, 2024

Oh I didn't realize mpd provided a telnet console!

  • commands:
commands
command: add
command: addid
command: addtagid
command: channels
command: clear
command: clearerror
command: cleartagid
command: close
command: commands
command: consume
command: count
command: crossfade
command: currentsong
command: decoders
command: delete
command: deleteid
command: disableoutput
command: enableoutput
command: find
command: findadd
command: list
command: listall
command: listallinfo
command: listfiles
command: listmounts
command: listneighbors
command: listplaylist
command: listplaylistinfo
command: listplaylists
command: load
command: lsinfo
command: mixrampdb
command: mixrampdelay
command: mount
command: move
command: moveid
command: next
command: notcommands
command: outputs
command: password
command: pause
command: ping
command: play
command: playid
command: playlist
command: playlistadd
command: playlistclear
command: playlistdelete
command: playlistfind
command: playlistid
command: playlistinfo
command: playlistmove
command: playlistsearch
command: plchanges
command: plchangesposid
command: previous
command: prio
command: prioid
command: random
command: rangeid
command: readmessages
command: rename
command: repeat
command: replay_gain_mode
command: replay_gain_status
command: rescan
command: rm
command: save
command: search
command: searchadd
command: searchaddpl
command: seek
command: seekcur
command: seekid
command: sendmessage
command: setvol
command: shuffle
command: single
command: stats
command: status
command: stop
command: subscribe
command: swap
command: swapid
command: tagtypes
command: toggleoutput
command: unmount
command: unsubscribe
command: update
command: urlhandlers
command: volume
OK
  • replay_gain_status:
replay_gain_status
off
OK

from rust-mpd.

kstep avatar kstep commented on September 23, 2024

Ok, now I see the problem.

My MPD instance gives a little different answer to replay_gain_status command:

replay_gain_status
replay_gain_mode: off
OK

My protocol version is 0.19.0, my MPD version is 0.19.15.

Could you please provide mpd.conf configuration file, just to compare our configs?

from rust-mpd.

bchretien avatar bchretien commented on September 23, 2024

Ok, I think I'm starting to understand what's going on... I am actually using mopidy. After turning mopidy off and using the system's mpd service directly, I do get the proper behavior (replay_gain_mode: off). It seems that they reimplemented the mpd protocol, but apparently wrongly for that specific command (j'accuse!). So rust-mpd works just as expected. Sorry for the waste of time, and kudos for your work! I'll open a PR for mopidy ;)

from rust-mpd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.