commit 25cb015876950ecfde8d5830933fbb438598d9bf parent 43a3db6aa65f2280fd2a22c431b5f6f08e77570e Author: Anders Damsgaard <anders@adamsgaard.dk> Date: Tue, 26 Feb 2019 21:11:43 +0100 Do not print description twice Diffstat:
M | links/.config/ranger/scope.sh | | | 3 | ++- |
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/links/.config/ranger/scope.sh b/links/.config/ranger/scope.sh @@ -58,7 +58,8 @@ if [ "$preview_images" = "True" ]; then ### ffmpegthumbnailer -i "$path" -o "$cached" -s 0 && exit 6 || exit 1;; # Image preview for video, disabled by default.: video/*) - mpv --frames=0 "$path" | tail -n +5 && exit 0 || exit 1;; + mpv --frames=0 "$path" | tail -n +5 | \ + awk '1;/Description: /{exit}' && exit 0 || exit 1;; esac fi