aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Capello <luca@pca.it>2008-01-06 15:29:00 +0000
committerLuca Capello <luca@pca.it>2008-01-06 15:29:00 +0000
commit87d38abc15487493da80afc3ecf92e32ed815ccd (patch)
tree784f7f092f4a65cf3c0d9febc809ee9c0cdb0a0d
parenteaa8db4d476216dc2f33582926eb44ece94a5923 (diff)
emms-player-mplayer.el: allow subtitle even for URLs
darcs-hash:20080106152951-f6b0c-663254836e588cd5212d30d1ce0f72e632a5d02c.gz
-rw-r--r--emms-player-mplayer.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/emms-player-mplayer.el b/emms-player-mplayer.el
index 76f978c..2bdecaa 100644
--- a/emms-player-mplayer.el
+++ b/emms-player-mplayer.el
@@ -87,8 +87,9 @@
(ext (file-name-extension name))
(choices
(emms-remove-if-not (lambda (i)
- (and (eq (emms-track-type track) 'file)
- (file-exists-p i)))
+ (or (and (eq (emms-track-type track) 'file)
+ (file-exists-p i))
+ (eq (emms-track-type track) 'url)))
(mapcar (lambda (el)
(emms-replace-regexp-in-string
(concat ext "$") el name))