From b0b924759217982344bcca2a202830bbdc620375 Mon Sep 17 00:00:00 2001 From: fred Date: Thu, 28 Apr 2022 20:26:19 +0200 Subject: [PATCH] NO _canonical_uri if empty --- zen/new_file_in_astroport.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/zen/new_file_in_astroport.sh b/zen/new_file_in_astroport.sh index 42c4b6f..154a60a 100755 --- a/zen/new_file_in_astroport.sh +++ b/zen/new_file_in_astroport.sh @@ -437,18 +437,24 @@ then "type": "'${MIME}'", "mime": "'${REAL}'", "cat": "'${CAT}'", - "poster": "'${SCREENDIR}/screen.png'", + "screenshot": "'${SCREENDIR}/screen.png'", "ipfsroot": "'${IPFSREPFILEID}'", "file": "'${file}'", "mediakey": "'${MEDIAKEY}'", "ipns": "'${IPNS}'", "tmdb": "'${REFERENCE}'", - "tags": "'${TAGS}'", + "tags": "'${TAGS}'" ' + [[ ${CANON} != "" ]] && echo ', "_canonical_uri": "'${CANON}'" } ] ' > ~/astroport/${TYPE}/${REFERENCE}/${MEDIAKEY}.dragdrop.json +# Will be used by caroussel.html template +# CAROUSSEL=$(ipfs add -wq ~/astroport/${TYPE}/${REFERENCE}/${MEDIAKEY}.dragdrop.json | head-n 1) + + + # COPY TIDDLER JSON TO DESKTOP Journal/${TYPE} [[ "$USER" != "xbian" && -d ~/Bureau ]] && mkdir -p ~/Bureau/Journal/${TYPE} && cp ~/astroport/${TYPE}/${REFERENCE}/${MEDIAKEY}.dragdrop.json ~/Bureau/Journal/${TYPE}/${TITLE}.dragdrop.json [[ "$USER" != "xbian" && -d ~/Desktop ]] && mkdir -p ~/Desktop/Journal/${TYPE} && cp ~/astroport/${TYPE}/${REFERENCE}/${MEDIAKEY}.dragdrop.json ~/Desktop/Journal/${TYPE}/${TITLE}.dragdrop.json