Skip to content

Commit 21e36ef

Browse files
committed
switched to yt-dlp
1 parent d7d90f3 commit 21e36ef

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

linkhandler

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ play ~/dotfiles/media/glass.ogg > /dev/null 2>/dev/null &
2929

3030
case "$1" in
3131
*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 & ;;
3333
*png|*jpg|*jpe|*jpeg|*gif)
3434
setsid sxiv -a "$1" >/dev/null 2>&1 & ;;
3535
*mp3|*flac|*opus|*mp3?source*)

mpv.conf

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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+

0 commit comments

Comments
 (0)