Package peppy :: Package plugins :: Module mpd_major_mode
[frames] | no frames]

Module mpd_major_mode

MPD (Music Player Daemon) mode.

Major mode for controlling an MPD server.

http://mpd.wikia.com/wiki/MusicPlayerDaemonCommands shows the commands available to the mpd server. I was confused about the difference between a song and a songid in a status message, and id and pos in the currentsong message... It appears that "song" and "id" refer to the position in the current playlist, and "id" and "songid" refer to the position in the original unshuffled playlist.

Classes
  MPDCommand
  ThreadedMPD
Thread control of a mpd instance
  MPDComm
Wrapper around mpd_connection to save state information.
  MPDActionMixin
  Login
  OpenMPD
  PlayingAction
Base class for actions that are valid only while playing music.
  ConnectedAction
Base class for actions that only need a working mpd.
  PrevSong
  NextSong
  StopSong
  PlayPause
  Mute
  VolumeUp
  VolumeDown
  UpdateDatabase
  DeleteFromPlaylist
  ClearPlaylist
  RandomPlaylist
  MPDSTC
  SongDataObject
  MPDMinorModeMixin
  MPDSearchResults
Minor mode to display the results of a file search.
  MPDListByGenre
Control to search through the MPD database to add songs to the playlist.
  MPDListByPath
  MPDListSearch
Search the database by keyword
  MPDMode
Major mode for controlling a Music Player Daemon.
  SongDropTarget
Custom drop target modified from the wxPython demo.
  MPDPlaylist
Minor mode to display the current playlist and controls for music playing.
  MPDCurrentlyPlaying
Minor mode to display the current title, artist, and album, with controls for position in the song and play/pause controls.
  MPDFS
  MPDPlugin
HSI viewer plugin to register modes and user interface.
Functions
 
getTitle(track)
Convenience function to return title of a track
 
getAlbum(track)
Convenience function to return album of a track
 
getArtist(track)
Convenience function to return album of a track
 
getTimeString(seconds)
 
getTime(track)
Convenience function to return album of a track