diff --git a/ajouter_video.sh b/ajouter_video.sh index b28221e..63a934d 100755 --- a/ajouter_video.sh +++ b/ajouter_video.sh @@ -57,8 +57,10 @@ IPFSNODEID=$(cat ~/.ipfs/config | jq -r .Identity.PeerID) [[ -f ~/.zen/ipfs/.$IPFSNODEID/_xbian.zuid ]] && XZUID=$(cat ~/.zen/ipfs/.$IPFSNODEID/_xbian.zuid) zenity --warning --width 300 --text "Cliquez nous capturons votre écran comme vignette MEDIA" +sleep 1 [[ $(echo $DISPLAY | cut -d ':' -f 1) == "" ]] && import -window root /tmp/screen.png + ######################################################################## ## CADRE EXCEPTION COPIE PRIVE # https://www.legifrance.gouv.fr/codes/article_lc/LEGIARTI000006278917/2008-12-11/ @@ -438,7 +440,7 @@ GENRES="[\"$(echo ${FILM_GENRES} | sed s/\|/\",\"/g)\"]" ################################### mkdir -p ~/astroport/${CAT}/${MEDIAID}/ mv -f "${FILE_PATH}/${FILE_NAME}" "$HOME/astroport/${CAT}/${MEDIAID}/${TITLE}.${FILE_EXT}" -mv /tmp/screen.png ~/astroport/${CAT}/${MEDIAID}/ +mv /tmp/screen.png ~/astroport/${CAT}/${MEDIAID}/screen.png if [ $? == 0 ]; then zenity --warning --width ${large} --text "Votre fichier ~/astroport/${CAT}/${MEDIAID}/${TITLE}.${FILE_EXT} est prêt à embarquer. Cliquez sur OK, nous allons préparer son script d'ajout à Astroport..." diff --git a/zen/new_file_in_astroport.sh b/zen/new_file_in_astroport.sh index 5f7a18d..42c4b6f 100755 --- a/zen/new_file_in_astroport.sh +++ b/zen/new_file_in_astroport.sh @@ -427,7 +427,7 @@ then fi ## Add screen - SCREENDIR=$(ipfs add -wq "${path}screen.png" | tail -n 1) + SCREENDIR=$(ipfs add -wq "$HOME/astroport/${TYPE}/${REFERENCE}/screen.png" | tail -n 1) echo "## Creation json tiddler" echo '[