Package: emms
Version: 2.1+clean-1
Severity: important

I do attach a little patch for emms-player-simple.el that solves the
problem. In addition I'd suggest to fix simple player definition macro
to make the regex customization actually functional. The suggested
correction is also included into the patch.

Best regards,
Igor.

-- System Information:
Debian Release: lenny/sid
  APT prefers gutsy-updates
  APT policy: (500, 'gutsy-updates'), (500, 'gutsy-security'), (500, 'gutsy')
Architecture: i386 (i686)

Kernel: Linux 2.6.22-14-generic (SMP w/2 CPU cores)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages emms depends on:
ii  emacs [emacsen]          22.1-0ubuntu5.1 The GNU Emacs editor (metapackage)
ii  emacs22 [emacsen]        22.1-0ubuntu5.1 The GNU Emacs editor (Emacs 22)
ii  emacsen-common           1.4.17          Common facilities for all emacsen
ii  libc6                    2.6.1-1ubuntu10 GNU C Library: Shared libraries
ii  libtagc0                 1.4-8           TagLib Audio Meta-Data Library (C 

Versions of packages emms recommends:
ii  mpg321                    0.2.10.3       A Free command-line mp3 player, co
ii  vorbis-tools              1.1.1-13build1 several Ogg Vorbis tools

-- no debconf information

diff -u emms-player-simple.el.orig emms-player-simple.el
--- emms-player-simple.el.orig	2007-05-09 19:21:45.000000000 +0400
+++ emms-player-simple.el	2008-02-22 03:45:35.000000000 +0300
@@ -98,7 +98,8 @@
        "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"
@@ -179,7 +180,7 @@
                              ".stm" ".stx" ".ult" ".apun" ".xm" ".mod")
   "mikmod" "-q" "-p" "1" "-X")
 (define-emms-simple-player alsaplayer '(file url)
-  (emms-player-simple-regexp ".ogg" ".mp3" ".wav" ".flac" ".pls" ".m3u" "http://";)
+  (emms-player-simple-regexp "ogg" "mp3" "wav" "flac" "pls" "m3u")
   "alsaplayer" "--quiet" "--nosave" "\"--interface text\"")
 
 (provide 'emms-player-simple)

Reply via email to