+(defcustom iplayer-startup-channel "BBC One"
+ "The channel to display at startup"
+ :type `(choice
+ ,@(mapcar (lambda (x) `(const ,(cdr x))) iplayer-presets)
+ (const :tag "Show all content" nil))
+ :group 'iplayer)
+
+(defun iplayer-frob-presets (presets)
+ (cond
+ ((version< emacs-version "24")
+ (mapcar (lambda (x) (cons (read-kbd-macro (car x)) (cdr x))) presets))
+ (t presets)))
+
+(defvar iplayer-current-channel nil)
+