From ae0d7c1b18e9c9d62ffb4abbe34beb29d22f1a21 Mon Sep 17 00:00:00 2001 From: fred Date: Sun, 13 Nov 2022 02:23:28 +0100 Subject: [PATCH] poster= --- tools/new_file_in_astroport.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tools/new_file_in_astroport.sh b/tools/new_file_in_astroport.sh index a12ae5a4c..55e747a26 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="