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
1 changed files with 5 additions and 1 deletions

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
image_preview "$1" "$2" "$TMPDIR/$3.png"
if [ -f "$TMPDIR/$3.png" ]; then
image_preview "$1" "$2" "$TMPDIR/$3.png"
else
fifo_pager print_bin_info "$3"
fi
}
image_preview() {