blob: c0f0b75cff86d501fe06b4200d6814f0c38b4e68 (
about) (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
# Yeetube.el
## About
- YouTube & Invidious Front-End.
Search for videos,
Download them,
Or just play them using your favorite media player (by default mpv).
*All without leaving Emacs*
### But why?
Because Emacs.
Differences with other front-ends:
- No YouTube/Invidious API
- Includes a simple front-end for `yt-dlp` *not forcing you to use youtube/invidious urls* :)
## Installation
- Clone repo
``` bash
git clone https://git.sr.ht/~thanosapollo/yeetube.el
```
- Add the following to your `init.el`
``` emacs-lisp
(load-file "/path/to/yeetube.el"))
```
### Customization
- `yeetube-results-prefix` Default is "+"
- `yeetube-query-url` Default is YouTube URL, *you can also use any invidious instance or localhost.*
- [Invidious instances](https://docs.invidious.io/instances/)
- `yeetube-download-audio-format` Default is `nil`, you can use it to
specify your downloads to be only (audio) FORMAT, e.g "m4a"
- `yeetube-display-info-keys` Default is `t`, displays default keybindings
- `yeetube-player` Default is "mpv"
#### Tips & Tricks
You can easily define functions to execute your preferred
`yeetube-player` while incorporating different user flags.
For instance, a function to switch between `mpv` and `mpv --no-video`
that allows for audio-only playback when desired.
``` emacs-lisp
(defun yeetube-switch-mpv ()
"Switching mpv from/to only audio."
(interactive)
(if (equal yeetube-player "mpv")
(setq yeetube-player "mpv --no-video")
(setq yeetube-player "mpv")))
```
Add it as a keybinding to `yeetube-mode-map`
``` emacs-lisp
(define-key yeetube-mode-map (kbd "c") 'yeetube-switch-mpv)
```
#### Downloading non-Youtube links
`yeetube-download-videos` is not specific to YouTube, it's just a
front end for `yt-dlp`. Open a Dired buffer and navigate to your
desired *PATH* and run `yeetube-download-videos` interactively.
## Contributing
- [Mailing list](https://lists.sr.ht/~thanosapollo/yeetube.el)
- Development takes places on `dev` branch
- [Issue Tracker](https://todo.sr.ht/~thanosapollo/yeetube.el)
|