From 2870b68de9979d0ea4becb112e4db7ff064d3942 Mon Sep 17 00:00:00 2001 From: fred Date: Sat, 12 Nov 2022 02:32:10 +0100 Subject: [PATCH] screen.png --- tools/new_file_in_astroport.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/tools/new_file_in_astroport.sh b/tools/new_file_in_astroport.sh index c85c3fe6..f13ec5f1 100755 --- a/tools/new_file_in_astroport.sh +++ b/tools/new_file_in_astroport.sh @@ -434,7 +434,9 @@ then DESCRIPTION=$(awk -F ';' '{print $1}' <<<$OUTPUT) HASHTAG=$(awk -F ';' '{print $2}' <<<$OUTPUT) - + ## Add screenshot (TODO : Make it better. Check what to put; if used & usefull + [[ -f $HOME/astroport/${TYPE}/${REFERENCE}/screen.png ]] && IPSCREEN=$(ipfs add -q "$HOME/astroport/${TYPE}/${REFERENCE}/screen.png" | tail -n 1) + [[ -f $HOME/astroport/${TYPE}/${REFERENCE}/thumbnail.png ]] && IPTHUMB=$(ipfs add -q "$HOME/astroport/${TYPE}/${REFERENCE}/thumbnail.png" | tail -n 1) if [[ $(echo "$MIME" | grep 'video') ]]; then TEXT="