Next: Play current page's video with mpv

master
Pierre Neidhardt 2018-12-10 15:23:24 +01:00
parent 1b841e2ffe
commit cb2cda8f15
1 changed files with 6 additions and 0 deletions

View File

@ -52,3 +52,9 @@
"(ambrevar/youtube-dl-at-point \"~a\")")
url)))))
(define-key *global-map* (key "C-M-c d") 'youtube-dl-current-page)
(define-command play-video-in-current-page ()
"Play video in the currently open buffer."
(with-result (url (buffer-get-url))
(uiop:run-program (list "mpv" url))))
(define-key *global-map* (key "C-M-c v") 'play-video-in-current-page)