diff --git a/tools/new_file_in_astroport.sh b/tools/new_file_in_astroport.sh index 6b8054ba..a191b854 100755 --- a/tools/new_file_in_astroport.sh +++ b/tools/new_file_in_astroport.sh @@ -276,7 +276,7 @@ then echo $GENRE $SAISON ## Add screenshot - [[ -f $HOME/Astroport/${TyPE}/${REFERENCE}/screen.png ]] && ANIMH=$(ipfs add -q "$HOME/Astroport/${TyPE}/${REFERENCE}/screen.png" | tail -n 1) && PROBETIME=0 + [[ -f $HOME/Astroport/${TyPE}/${REFERENCE}/screen.png ]] && SCREEN=$(ipfs add -q "$HOME/Astroport/${TyPE}/${REFERENCE}/screen.png" | tail -n 1) && PROBETIME=0 if [[ $(echo "$MIME" | grep 'video') ]]; then @@ -314,6 +314,7 @@ then "duration": "'${DURATION}'", "giftime": "'${PROBETIME}'", "vtratio": "'${VTRATIO}'", + "screen": "'/ipfs/${SCREEN}'", "gifanime": "'/ipfs/${ANIMH}'", "type": "'${TidType}'", "mime": "'${MIME}'",