File tree 2 files changed +15
-1
lines changed
2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ play ~/dotfiles/media/glass.ogg > /dev/null 2>/dev/null &
29
29
30
30
case " $1 " in
31
31
* mkv|* webm|* mp4|* youtube.com* |* youtu.be* |* hooktube.com* |* bitchute.com* |* gifv|* v.redd.it* |* gifs.com* )
32
- setsid mpv --input-ipc-server=/tmp/mpvsoc$( date +%s) -quiet " $1 " > /dev/null 2>&1 & ;;
32
+ setsid mpv --ytdl-format= " bestvideo[height<=1080]+bestaudio " -- input-ipc-server=/tmp/mpvsoc$( date +%s) -quiet " $1 " > /dev/null 2>&1 & ;;
33
33
* png|* jpg|* jpe|* jpeg|* gif)
34
34
setsid sxiv -a " $1 " > /dev/null 2>&1 & ;;
35
35
* mp3|* flac|* opus|* mp3? source* )
Original file line number Diff line number Diff line change
1
+ script-opts=ytdl_hook-ytdl_path=/usr/bin/yt-dlp
2
+
3
+ [1080p]
4
+ ytdl-format=bestvideo[height<=?1080]+bestaudio/best
5
+
6
+ [720p]
7
+ ytdl-format=bestvideo[height<=?720]+bestaudio/best
8
+
9
+ [480p]
10
+ ytdl-format=bestvideo[height<=?480]+bestaudio/best
11
+
12
+ [360p]
13
+ ytdl-format=bestvideo[height<=?360]+bestaudio/best
14
+
You can’t perform that action at this time.
0 commit comments