publish "mime": "'${REAL}'",
This commit is contained in:
parent
76198f678f
commit
a016819b87
|
@ -414,6 +414,7 @@ then
|
||||||
|
|
||||||
GENRE=$(cat ~/.zen/ipfs/.${IPFSNODEID}/KEY/${MEDIAKEY}/${G1PUB}/ajouter_video.txt | cut -d ';' -f 6 | sed 's/|/ /g' )
|
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)
|
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
|
if [[ $(echo "$MIME" | grep 'video') ]]; then
|
||||||
TEXT="<video controls><source src='/ipfs/"${IPFSID}"' type='"${MIME}"'></video><h1>"${TITLE}"</h1>"
|
TEXT="<video controls><source src='/ipfs/"${IPFSID}"' type='"${MIME}"'></video><h1>"${TITLE}"</h1>"
|
||||||
MIME="text/vnd.tiddlywiki"
|
MIME="text/vnd.tiddlywiki"
|
||||||
|
@ -434,6 +435,7 @@ then
|
||||||
"text": "'${TEXT}'",
|
"text": "'${TEXT}'",
|
||||||
"title": "'${TITLE}'",
|
"title": "'${TITLE}'",
|
||||||
"type": "'${MIME}'",
|
"type": "'${MIME}'",
|
||||||
|
"mime": "'${REAL}'",
|
||||||
"cat": "'${CAT}'",
|
"cat": "'${CAT}'",
|
||||||
"poster": "'${SCREENDIR}/screen.png'",
|
"poster": "'${SCREENDIR}/screen.png'",
|
||||||
"ipfsroot": "'${IPFSREPFILEID}'",
|
"ipfsroot": "'${IPFSREPFILEID}'",
|
||||||
|
|
Loading…
Reference in New Issue