Christophe Weblog Wiki Code Publications Music
support other versions of get-iplayer
authorChristophe Rhodes <csr21@cantab.net>
Tue, 23 Apr 2013 14:44:38 +0000 (15:44 +0100)
committerChristophe Rhodes <csr21@cantab.net>
Tue, 23 Apr 2013 14:44:38 +0000 (15:44 +0100)
use --modes=best to avoid errors from not having a particular kind of
stream available.  (I'm not at all clear where the errors come from: I
have never needed this before, but some users do).

iplayer.el

index 1b02d16b6beed2e6a17f63a95977b1c55a7a9ac7..5b5b5c4e0b0bca3fb10293e60e7053a5f76c0429 100644 (file)
@@ -185,7 +185,7 @@ The presets are defined in the variable `iplayer-presets'."
           ;; should probably use a process filter instead to give us a
           ;; progress bar
           (message "downloading id %s" id)
           ;; should probably use a process filter instead to give us a
           ;; progress bar
           (message "downloading id %s" id)
-          (start-process "get-iplayer" " *get-iplayer*" "get-iplayer" "--get" (format "%s" id)))
+          (start-process "get-iplayer" " *get-iplayer*" "get-iplayer" "--modes=best" "--get" (format "%s" id)))
       (message "no id at point"))))
 
 (defun iplayer-previous ()
       (message "no id at point"))))
 
 (defun iplayer-previous ()