From 34f42406bbf25bb659eb530b65a51920e5f4805e Mon Sep 17 00:00:00 2001 From: fred Date: Thu, 5 May 2022 23:33:03 +0200 Subject: [PATCH] =?UTF-8?q?=20nous=20capturons=20votre=20=C3=A9cran=20comm?= =?UTF-8?q?e=20vignette=20MEDIA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ajouter_video.sh | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/ajouter_video.sh b/ajouter_video.sh index 1eb9b8d..7a5ef50 100755 --- a/ajouter_video.sh +++ b/ajouter_video.sh @@ -56,11 +56,6 @@ IPFSNODEID=$(cat ~/.ipfs/config | jq -r .Identity.PeerID) [[ -f ~/.zen/ipfs/.$IPFSNODEID/G1SSB/_g1.gchange_title ]] && XGUID="$(cat ~/.zen/ipfs/.$IPFSNODEID/G1SSB/_g1.gchange_title)" || XGUID="$(cat /etc/hostname)" [[ -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/ @@ -435,6 +430,14 @@ GENRES="[\"$(echo ${FILM_GENRES} | sed s/\|/\",\"/g)\"]" # --text "${FILE_NAME} (${CAT};${MEDIAID};${YEAR};${TITLE};${SAISON};${GENRES};${GROUPES};${RES})" # [ $? == 1 ] && echo "ANNULATION." && exit 1 +######################################################################## +# Screen capture is used as thumbnail +######################################################################## +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 + + ################################### ### MOVING FILE TO ~/astroport #### ###################################