From 1979388f5cce280cb7ec464d10d7b9e22ec57db6 Mon Sep 17 00:00:00 2001 From: fred Date: Sat, 3 Dec 2022 16:54:40 +0100 Subject: [PATCH] _canonical_uri --- ajouter_media.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/ajouter_media.sh b/ajouter_media.sh index 2c3e8b67..9248ec73 100755 --- a/ajouter_media.sh +++ b/ajouter_media.sh @@ -21,7 +21,7 @@ MY_PATH="`dirname \"$0\"`" # relative MY_PATH="`( cd \"$MY_PATH\" && pwd )`" # absolutized and normalized ME="${0##*/}" - +start=`date +%s` ######################################################################## [[ $(which ipfs) == "" ]] && echo "ERREUR! Installez ipfs" && echo "wget https://git.p2p.legal/axiom-team/astrXbian/raw/master/.install/ipfs_alone.sh -O /tmp/ipfs_install.sh && chmod +x /tmp/ipfs_install.sh && /tmp/ipfs_install.sh" && exit 1 [[ $(which zenity) == "" ]] && echo "ERREUR! Installez zenity" && echo "sudo apt install zenity" && exit 1 @@ -539,7 +539,7 @@ echo '[ { "created": "'${MOATS}'", "modified": "'${MOATS}'", - "_canonical_uri": "'${MOATS}'", + "_canonical_uri": "'/ipfs/${IPFSREPFILEID}'", "title": "'$TITLE'", "artist": "'$artist'", "song": "'$song'", @@ -869,12 +869,16 @@ echo "%%%%%%%%%%%%%% I GOT YOUR TW %%%%%%%%%%%%%%%%%%%%%%%%%%" echo "================================================" echo + [[ $XDG_SESSION_TYPE == 'x11' ]] && xdg-open "http://$myIP:8080/ipns/$ASTRONAUTENS" + else espeak "Warning. Could not import Tiddler. You must add it by hand." fi - espeak "OK We did it." +end=`date +%s` +dur=`expr $end - $start` +espeak "OK We did it and It tooks $dur seconds to acomplish" exit 0