From 40f1acc04079dc96360401739cb3c93940728d1a Mon Sep 17 00:00:00 2001 From: Anh Tuan Nguyen Date: Mon, 16 Oct 2017 13:38:43 +0200 Subject: [PATCH] youtube videos are now directly handled by mpv in mailcap --- rtv/templates/mailcap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtv/templates/mailcap b/rtv/templates/mailcap index 2dc131a..c57c78d 100644 --- a/rtv/templates/mailcap +++ b/rtv/templates/mailcap @@ -31,7 +31,7 @@ image/*; feh -g 640x480 '%s'; test=test -n "$DISPLAY" # Youtube videos are assigned a custom mime-type, which can be streamed with # vlc or youtube-dl. video/x-youtube; vlc '%s' --width 640 --height 480; test=test -n "$DISPLAY" -video/x-youtube; youtube-dl -q -o - '%s' | mpv - --autofit 640x480; test=test -n "$DISPLAY" +video/x-youtube; mpv --ytdl-format=best '%s' --autofit 640x480; test=test -n "$DISPLAY" # Mpv is a simple and effective video streamer video/webm; mpv '%s' --autofit 640x480 --loop=inf; test=test -n "$DISPLAY"