new tiddler json format

This commit is contained in:
fred 2022-04-23 00:26:31 +02:00
parent 2240e01373
commit cc549848ad
1 changed files with 6 additions and 4 deletions

View File

@ -413,21 +413,23 @@ then
cat ~/.zen/ipfs/.${IPFSNODEID}/astroport/kodi/vstream/${PREFIX}ASTRXBIAN ~/.zen/ipfs_swarm/.12D*/astroport/kodi/vstream/${PREFIX}ASTRXBIAN | sort | uniq > ~/.zen/ipfs/.${IPFSNODEID}/${PREFIX}ASTRXBIAN
MIME=$(file --mime-type "$HOME/astroport/${TYPE}/${REFERENCE}/${file}" | cut -d ' ' -f 2)
MIME=$(file --mime-type "$HOME/astroport/${TYPE}/${REFERENCE}/${file}" | cut -d ':' -f 2 | cut -d ' ' -f 2)
# [[ echo "$MIME" | grep 'video' ]] && TEXT='<video height='${RES}'x controls preload=none> <source src=/ipfs/'${IPFSREPFILEID}'/'${file}' type='${MIME}'> </video>' || TEXT=''
echo "## Creation json tiddler"
echo '[
{
"text": "",
"text": "'${TEXT}'",
"title": "'${TITLE}'",
"type": "'${MIME}'",
"cat": "'${CAT}'",
"ipfsroot": "'${IPFSREPFILEID}'",
"file": "'${file}'",
"mediakey": "'${MEDIAKEY}'",
"ipns": "'${IPNS}'",
"tmdb": "'${REFERENCE}'",
"tags": "$:/isAttachment $:/isIpfs",
"_canonical_uri": "/ipfs/'${IPFSREPFILEID}'/'${URLENCODE_FILE_NAME}'"
"tags": "$:/isAttachment $:/isIpfs '${CAT}'",
"_canonical_uri": "/ipfs/'${IPFSID}'"
}
]
' > ~/astroport/${TYPE}/${REFERENCE}/${MEDIAKEY}.dragdrop.json