forked from axiom-team/astrXbian
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' )
|
||||
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}'",
|
||||
|
|
Loading…
Reference in New Issue