forked from axiom-team/astrXbian
video tag
This commit is contained in:
parent
f0abc89769
commit
ef25f477c0
|
@ -415,7 +415,7 @@ then
|
||||||
|
|
||||||
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)
|
||||||
if [[ $(echo "$MIME" | grep 'video') ]]; then
|
if [[ $(echo "$MIME" | grep 'video') ]]; then
|
||||||
TEXT='<video height='${RES}'x width=100% controls preload=none><source src=/ipfs/'${IPFSID}' type='${MIME}'></video><h1>'${TITLE}'</h1>'
|
TEXT="<video controls><source src='/ipfs/"${IPFSID}"' type='"${MIME}"'></video><h1>"${TITLE}"</h1>"
|
||||||
MIME="txt/html"
|
MIME="txt/html"
|
||||||
TAGS="${CAT}"
|
TAGS="${CAT}"
|
||||||
CANON=''
|
CANON=''
|
||||||
|
|
Loading…
Reference in New Issue