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="