diff --git a/tools/new_file_in_astroport.sh b/tools/new_file_in_astroport.sh index a12ae5a4..55e747a2 100755 --- a/tools/new_file_in_astroport.sh +++ b/tools/new_file_in_astroport.sh @@ -435,10 +435,13 @@ then ## 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) + [[ $IPSCREEN ]] && POSTER=$IPSCREEN + [[ -f $HOME/astroport/${TYPE}/${REFERENCE}/thumbnail.png ]] && IPTHUMB=$(ipfs add -q "$HOME/astroport/${TYPE}/${REFERENCE}/thumbnail.png" | tail -n 1) + [[ $IPTHUMB ]] && POSTER=$IPTHUMB if [[ $(echo "$MIME" | grep 'video') ]]; then - TEXT="