publish "mime": "'${REAL}'",

This commit is contained in:
fred 2022-04-23 22:26:14 +02:00
parent 76198f678f
commit a016819b87
1 changed files with 2 additions and 0 deletions

View File

@ -414,6 +414,7 @@ then
GENRE=$(cat ~/.zen/ipfs/.${IPFSNODEID}/KEY/${MEDIAKEY}/${G1PUB}/ajouter_video.txt | cut -d ';' -f 6 | sed 's/|/ /g' )
MIME=$(file --mime-type "$HOME/astroport/${TYPE}/${REFERENCE}/${file}" | cut -d ':' -f 2 | cut -d ' ' -f 2)
REAL=$MIME
if [[ $(echo "$MIME" | grep 'video') ]]; then
TEXT="<video controls><source src='/ipfs/"${IPFSID}"' type='"${MIME}"'></video><h1>"${TITLE}"</h1>"
MIME="text/vnd.tiddlywiki"
@ -434,6 +435,7 @@ then
"text": "'${TEXT}'",
"title": "'${TITLE}'",
"type": "'${MIME}'",
"mime": "'${REAL}'",
"cat": "'${CAT}'",
"poster": "'${SCREENDIR}/screen.png'",
"ipfsroot": "'${IPFSREPFILEID}'",