diff options
author | forcer <forcer> | 2007-08-27 13:31:00 +0000 |
---|---|---|
committer | forcer <mwolson@gnu.org> | 2007-08-27 13:31:00 +0000 |
commit | f29e12ff6fb71422a0e2fd9c59b6daf35cd2338a (patch) | |
tree | e732169737f42014c62bb02c33fbe2b1a0619133 | |
parent | b1f1c4ad7e79f41774f5f135d93c762571c88866 (diff) |
Simple players now use their regex property as they should.
emms-player-simple.el (define-emms-simple-player): `playablep' now
uses `emms-player-get' for the regex property, instead of using the
hardcoded regex, as it should. Thanks to Ye Wenbin for noticing this
old bug.
darcs-hash:20070827133149-2189f-c1d9cec8543eec45106379d520c8d829cc31ba52.gz
-rw-r--r-- | emms-player-simple.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/emms-player-simple.el b/emms-player-simple.el index bc3fc05..6286504 100644 --- a/emms-player-simple.el +++ b/emms-player-simple.el @@ -98,7 +98,8 @@ to call the player and ARGS are the command line arguements." "Return non-nil when we can play this track." (and (executable-find ,command-name) (memq (emms-track-type track) ,types) - (string-match ,regex (emms-track-name track))))))) + (string-match (emms-player-get ,player-name 'regex) + (emms-track-name track))))))) ;; Global variables (defvar emms-player-simple-process-name "emms-player-simple-process" |