From 1a6fdb1364b5b3f710d6179745826af17cfcad5d Mon Sep 17 00:00:00 2001 From: fred Date: Tue, 27 Dec 2022 12:56:35 +0100 Subject: [PATCH] Add G1PUB (publisher g1 key) in TIDDLERS --- ASTROBOT/G1CopierYoutube.sh | 3 +++ tools/new_file_in_astroport.sh | 1 + 2 files changed, 4 insertions(+) diff --git a/ASTROBOT/G1CopierYoutube.sh b/ASTROBOT/G1CopierYoutube.sh index 6bd6df447..68cd1bc11 100755 --- a/ASTROBOT/G1CopierYoutube.sh +++ b/ASTROBOT/G1CopierYoutube.sh @@ -30,6 +30,8 @@ PLAYER="$2" ASTONAUTENS=$(ipfs key list -l | grep -w $PLAYER | cut -d ' ' -f1) [[ ! $ASTONAUTENS ]] && echo "ERROR - Clef IPNS $PLAYER introuvable!" && exit 1 +G1PUB=$(cat ~/.zen/game/players/$PLAYER/.g1pub) + # Extract tag=tube from TW MOATS=$(date -u +"%Y%m%d%H%M%S%4N") @@ -209,6 +211,7 @@ if [[ ! ${TIDDLER} ]]; then "type": "'text/vnd.tiddlywiki'", "vtratio": "'${VTRATIO}'", "text": "'$TEXT'", + "g1pub": "'${G1PUB}'", "mime": "'${MIME}'", "size": "'${FILE_BSIZE}'", "filesize": "'${FILE_SIZE}'", diff --git a/tools/new_file_in_astroport.sh b/tools/new_file_in_astroport.sh index f368a9b40..4e4634cd0 100755 --- a/tools/new_file_in_astroport.sh +++ b/tools/new_file_in_astroport.sh @@ -330,6 +330,7 @@ then "size": "'${FILE_BSIZE}'", "description": "'${DESCRIPTION}'", "screenshot": "'/ipfs/${POSTER}'", + "g1pub": "'${G1PUB}'", "ipfsroot": "'/ipfs/${IPFSREPFILEID}'", "file": "'${file}'", "ipfs": "'/ipfs/${IPFSREPFILEID}/${URLENCODE_FILE_NAME}'",