generate_preview fallback (#904)

This commit is contained in:
luukvbaal 2021-03-21 04:49:19 +01:00 committed by GitHub
parent bebad983ca
commit 9544eb91d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -255,7 +255,11 @@ generate_preview() {
video) ffmpegthumbnailer -i "$3" -o "$TMPDIR/$3.png" -s 0 -q 10 >/dev/null 2>&1 ;;
esac
fi
if [ -f "$TMPDIR/$3.png" ]; then
image_preview "$1" "$2" "$TMPDIR/$3.png"
else
fifo_pager print_bin_info "$3"
fi
}
image_preview() {