diff --git a/ajouter_video.sh b/ajouter_video.sh index 45db711..d90877d 100755 --- a/ajouter_video.sh +++ b/ajouter_video.sh @@ -473,14 +473,13 @@ echo "new_file_in_astroport.sh \"$HOME/astroport/${CAT}/${MEDIAID}/\" \"${FILE_N [[ "$CAT" == "film" || "$CAT" == "serie" ]] && CHOICE="TMDB" ~/.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... LOG: cat /tmp/${MEDIAKEY}.log" && exit 1 ######################################################################## ######################################################################## ######################################################################## ######################################################################## ######################################################################## - MEDIAPUBKEY=$(cat $HOME/.zen/ipfs/.${IPFSNODEID}/KEY/${MEDIAKEY}/MEDIAPUBKEY) -[ $? == 0 ] && zenity --warning --width 300 --text "Désolé une erreur est survenue... LOG: cat /tmp/${MEDIAKEY}.log" && exit 1 zenity --width=500 --height=500 --text-info \ --title="QR CODE MEDIA ${MEDIAKEY} (PASS=$(cat /tmp/${MEDIAKEY}.pass))" \