screen.png

This commit is contained in:
fred 2022-11-12 02:32:10 +01:00
parent e07781af7a
commit 2870b68de9
1 changed files with 3 additions and 5 deletions

View File

@ -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="<video controls preload='none' width=100% poster='/ipfs/"${IPSCREEN}"'><source src='/ipfs/"${IPFSID}"' type='"${MIME}"'>
@ -455,10 +457,6 @@ then
CANON="/ipfs/"${IPFSID}
fi
## 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)
echo "## Creation json tiddler"
echo '[
{