diff --git a/ajouter_video.sh b/ajouter_video.sh index 3cc84c2..05baddf 100755 --- a/ajouter_video.sh +++ b/ajouter_video.sh @@ -526,11 +526,13 @@ echo "new_file_in_astroport.sh \"$HOME/astroport/${CAT}/${MEDIAID}/\" \"${FILE_N ######################################################################## [[ "$CAT" == "film" || "$CAT" == "serie" ]] && CHOICE="TMDB" +timestamp=$(date -u +%s%N | cut -b1-13) echo "MEDIAKEY=${MEDIAKEY} ~/.zen/astrXbian/zen/new_file_in_astroport.sh \"$HOME/astroport/${CAT}/${MEDIAID}/\" \"${FILE_NAME}\" rm -f /tmp/\${MEDIAKEY}.pass rm -f /tmp/\${MEDIAKEY}.dunikey ## REMOVE KEYS -" >> ~/astroport/nf_$(date -u +%s%N | cut -b1-13)_cmd.sh +rm ~/astroport/nf_$timestamp_cmd.sh +" > ~/astroport/nf_$timestamp_cmd.sh # ~/.zen/astrXbian/zen/new_file_in_astroport.sh "$HOME/astroport/${CAT}/${MEDIAID}/" "${FILE_NAME}" > /tmp/${MEDIAKEY}.log 2>&1 # [ ! $? == 0 ] && zenity --warning --width 300 --text "Désolé une erreur est survenue... Signalez ce log /tmp/${MEDIAKEY}.log sur https://git.p2p.legal/axiom-team/astrXbian" && exit 1 @@ -541,11 +543,11 @@ rm -f /tmp/\${MEDIAKEY}.dunikey ## REMOVE KEYS ######################################################################## MEDIAPUBKEY=$(cat $HOME/.zen/ipfs/.${IPFSNODEID}/KEY/${MEDIAKEY}/MEDIAPUBKEY) -[ ! $2 ] && zenity --width=500 --height=500 --text-info \ - --title="QR CODE MEDIA ${MEDIAKEY} (PASS=$(cat /tmp/${MEDIAKEY}.pass))" \ - --html \ - --url="http://127.0.0.1:8181/ipns/${IPFSNODEID}/.${IPFSNODEID}/KEY/${MEDIAKEY}/QR.png" \ - --checkbox="Je m'engage à respecter les auteurs et promet d'offrir la Monnaie Libre collectée à qui de droit." +#[ ! $2 ] && zenity --width=500 --height=500 --text-info \ +# --title="QR CODE MEDIA ${MEDIAKEY} (PASS=$(cat /tmp/${MEDIAKEY}.pass))" \ +# --html \ +# --url="http://127.0.0.1:8181/ipns/${IPFSNODEID}/.${IPFSNODEID}/KEY/${MEDIAKEY}/QR.png" \ +# --checkbox="Je m'engage à respecter les auteurs et promet d'offrir la Monnaie Libre collectée à qui de droit." ######################################################################## echo "# ZENBALANCE for ${MEDIAKEY} , WALLET $MEDIAPUBKEY" @@ -569,6 +571,6 @@ cat /tmp/${MEDIAKEY}.log if [ ! $2 ]; then - [ $? == 0 ] && zenity --warning --width 300 --text "OK! MEDIA transféré ($ZENBALANCE ZEN). URL LOCALHOST prête à coller (/tmp/${MEDIAKEY}.log)" && exit 0 \ - || zenity --warning --width 300 --text "Désolé une erreur est survenue... LOG: cat /tmp/${MEDIAKEY}.log" && exit 1 + [ $? == 0 ] && zenity --warning --width 300 --text "OK! ${MEDIAKEY} transféré ($FILE_SIZE) sur Astroport" && exit 0 \ + || zenity --warning --width 300 --text "Désolé une erreur est survenue..." && exit 1 fi