+ (when (string-match "\\(asx\\|m3u\\|pls\\|ram\\)$" media/mplayer/url)
+ (if media/mplayer/capture-dir
+ (list "-dumpfile"
+ (concat media/mplayer/capture-dir
+ "/"
+ (replace-regexp-in-string "[^a-zA-Z0-9\.]" "_" media/mplayer/url)
+ (format-time-string "-%Y-%m-%d-%H:%M:%S"))
+ "-capture"
+ "-playlist"
+ )