new tiddler json format
This commit is contained in:
parent
2240e01373
commit
cc549848ad
|
@ -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
|
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 "## Creation json tiddler"
|
||||||
echo '[
|
echo '[
|
||||||
{
|
{
|
||||||
"text": "",
|
"text": "'${TEXT}'",
|
||||||
"title": "'${TITLE}'",
|
"title": "'${TITLE}'",
|
||||||
"type": "'${MIME}'",
|
"type": "'${MIME}'",
|
||||||
"cat": "'${CAT}'",
|
"cat": "'${CAT}'",
|
||||||
|
"ipfsroot": "'${IPFSREPFILEID}'",
|
||||||
"file": "'${file}'",
|
"file": "'${file}'",
|
||||||
"mediakey": "'${MEDIAKEY}'",
|
"mediakey": "'${MEDIAKEY}'",
|
||||||
"ipns": "'${IPNS}'",
|
"ipns": "'${IPNS}'",
|
||||||
"tmdb": "'${REFERENCE}'",
|
"tmdb": "'${REFERENCE}'",
|
||||||
"tags": "$:/isAttachment $:/isIpfs",
|
"tags": "$:/isAttachment $:/isIpfs '${CAT}'",
|
||||||
"_canonical_uri": "/ipfs/'${IPFSREPFILEID}'/'${URLENCODE_FILE_NAME}'"
|
"_canonical_uri": "/ipfs/'${IPFSID}'"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
' > ~/astroport/${TYPE}/${REFERENCE}/${MEDIAKEY}.dragdrop.json
|
' > ~/astroport/${TYPE}/${REFERENCE}/${MEDIAKEY}.dragdrop.json
|
||||||
|
|
Loading…
Reference in New Issue