"ipfs" tag added for tiddlers containing <video>

This commit is contained in:
fred 2022-09-09 15:55:55 +02:00
parent 8c8e2a8874
commit 2bde100578
2 changed files with 2 additions and 2 deletions

View File

@ -58,7 +58,7 @@ for yurl in $(cat ~/.zen/tmp/tiddlers.json | jq -r '.[].text' | grep 'http'); do
"type": "'text/vnd.tiddlywiki'",
"text": "'$TEXT'",
"ipfs": "'${ILINK}'",
"tags": "'ipfs youtube copylaradio ${MIME}'"
"tags": "'ipfs youtube ${MIME}'"
}
]
' > ~/.zen/tmp/tube.json

View File

@ -422,7 +422,7 @@ then
if [[ $(echo "$MIME" | grep 'video') ]]; then
TEXT="<video controls><source src='/ipfs/"${IPFSID}"' type='"${MIME}"'></video><h1>"${TITLE}"</h1>"
MIME="text/vnd.tiddlywiki"
TAGS="${CAT} astroport $GENRE"
TAGS="${CAT} astroport $GENRE ipfs"
CANON=''
else
TEXT='${MEDIAKEY}'