aboutsummaryrefslogtreecommitdiff
path: root/lisp/emms-player-mpd.el
Commit message (Collapse)AuthorAgeFilesLines
* Clean up use of regexps to match supported tracks.Michael Olson2008-09-201-1/+2
| | | | | | | | | | | | | | | | * lisp/emms-player-mpd.el (emms-player-mpd-supported-regexp): Use emms-player-simple-regexp. * lisp/emms-player-mplayer.el (mplayer): Ditto. (mplayer-playlist): Only match http:// at beginning of filename. * lisp/emms-player-simple.el (mikmod, alsaplayer): Don't put periods in extensions. Separate URLs from extensions. * lisp/emms-player-xine.el (xine): Use emms-player-simple-regexp. * lisp/emms-source-playlist.el (emms-source-playlist-parse-m3u) (emms-source-playlist-parse-pls): Make regexp easier to read.
* emms-player-mpd: Allow periodic song-change timer to be suppressed.Michael Olson2008-09-181-10/+17
| | | | | | | | * lisp/emms-player-mpd.el (emms-player-mpd-check-interval): Allow this to be nil. (emms-player-mpd-play): If nil, do just one check, so that we can record the current play/paused state. (emms-player-mpd-connect-1): If nil, don't install the timer.
* Implement filtering of track data after retrieving it.Michael Olson2008-08-071-0/+2
| | | | | | | | | | | | | * lisp/emms.el (emms-track-info-filters): New option that allows the user to specify some functions that filter track data. One example of this is removing cruft like "(Album Version)" from music purchased over Amazon without having to edit every single music file. (emms-track-updated-functions): Update docstring to indicate that this is called after display of the track, not before. (emms-track-updated): Call emms-track-info-filters. * lisp/emms-player-mpd.el (emms-player-mpd-get-tracks-1) (emms-player-mpd-show-1): Call emms-track-info-filters.
* emms-player-mpd: Fix compiler warning.Michael Olson2008-07-171-1/+1
|
* emms-player-mpd: Only try once to read tracks after running out of them.Michael Olson2008-07-161-2/+4
| | | | This fixes a bug introduced in the last commit.
* emms-player-mpd: Implement handling of non-EMMS stop of mpd.Michael Olson2008-07-161-7/+28
| | | | | | | | | | | | * lisp/emms-player-mpd.el (emms-player-mpd-last-state): New variable. (emms-player-mpd-detect-song-change-2): New function that triggers playing time update after a non-EMMS-triggered stop. (emms-player-mpd-detect-song-change-1): Do not disconnect on stop. Implement handling of the case where people run "mpc stop", "mpc start" manually. Have EMMS pick up from where they left off. (emms-player-mpd-clear): Trigger the removal of playing time from the modeline. (emms-player-mpd-disconnect): Clear emms-player-mpd-last-state.
* *.el -> lisp/*.el: Move lisp files into "lisp/" subdirectory.William Xu2008-06-171-0/+1198