From 3413ac0b1902f26cdf7faac031d10b61fd67f79b Mon Sep 17 00:00:00 2001 From: Anh Tuan Nguyen Date: Tue, 17 Oct 2017 14:22:35 +0200 Subject: [PATCH 1/2] gif should be handled by mpv in mailcap --- rtv/templates/mailcap | 1 + 1 file changed, 1 insertion(+) diff --git a/rtv/templates/mailcap b/rtv/templates/mailcap index c57c78d..3e88c9d 100644 --- a/rtv/templates/mailcap +++ b/rtv/templates/mailcap @@ -26,6 +26,7 @@ # Note that rtv returns a list of urls for imgur albums, so we don't put quotes # around the `%s` image/x-imgur-album; feh -g 640x480 %s; test=test -n "$DISPLAY" +image/gif; mpv '%s' --autofit 640x480 --loop=inf; test=test -n "$DISPLAY" image/*; feh -g 640x480 '%s'; test=test -n "$DISPLAY" # Youtube videos are assigned a custom mime-type, which can be streamed with From d7ddd96f820e787106b0a9fbe6cd7769598700f2 Mon Sep 17 00:00:00 2001 From: Anh Tuan Nguyen Date: Wed, 18 Oct 2017 09:32:39 +0200 Subject: [PATCH 2/2] removed redundant entry for webm in mailcap --- rtv/templates/mailcap | 1 - 1 file changed, 1 deletion(-) diff --git a/rtv/templates/mailcap b/rtv/templates/mailcap index 3e88c9d..a0907c9 100644 --- a/rtv/templates/mailcap +++ b/rtv/templates/mailcap @@ -35,7 +35,6 @@ video/x-youtube; vlc '%s' --width 640 --height 480; 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" video/*; mpv '%s' --autofit 640x480 --loop=inf; test=test -n "$DISPLAY" ###############################################################################