From f01b5a9c45177ef339fb75561e9b22114056885e Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Sat, 19 Aug 2023 05:06:29 +0300 Subject: Update README --- README.md | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 727b7fb..1135992 100644 --- a/README.md +++ b/README.md @@ -39,11 +39,29 @@ git clone https://git.sr.ht/~thanosapollo/yeetube.el ### Dependencies - [mpv](https://mpv.io/): default multimedia player - [yt-dlp](https://github.com/yt-dlp/yt-dlp): download functionality -- socat: control mpv *e.g pause/play* *Debian/Ubuntu* ``` shell -sudo apt install mpv yt-dlp socat +sudo apt install mpv yt-dlp +``` + +### Configuration +#### Media Player +Changing `yeetube-player` example: + +``` emacs-lisp +(setq yeetube-player 'vlc) +``` + +You can also use [mpv.el](https://github.com/kljohann/mpv.el) or other +similar packages with yeetube by simple redefining `yeetube-play-url` +to something like this: + +``` emacs-lisp + (defun yeetube-play-url (url) + "Open URL using mpv-play-url." + (when (string-prefix-p "http" url) + (mpv-play-url url))) ``` ## Contributing -- cgit v1.2.3