vtratio(dur)

This commit is contained in:
fred 2022-12-19 22:10:47 +01:00
parent e38414688f
commit 7505eccd7c
2 changed files with 3 additions and 2 deletions

View File

@ -188,7 +188,7 @@ if [[ ! ${TIDDLER} ]]; then
EXTRATAG="$CHANNEL $PLAYLIST"
## PREPARE VIDEO HTML5 CODE
TEXT="<video controls width=100% poster='/ipfs/"${ANIMH}"'><source src='/ipfs/"${ILINK}"' type='"${MIME}"'></video>
<br>{{!!filesize}} - {{!!dur}} sec. - vtratio = {{!!vtratio}}<br>
<br>{{!!filesize}} - {{!!duration}} sec. - vtratio(dur) = {{!!vtratio}} ({{!!dur}})<br>
<h1><a href='"${ZYURL}"'>"${TITLE}"</a></h1>"
end=`date +%s`
@ -212,6 +212,7 @@ if [[ ! ${TIDDLER} ]]; then
"text": "'$TEXT'",
"mime": "'${MIME}'",
"size": "'${FILE_BSIZE}'",
"filesize": "'${FILE_SIZE}'",
"sec": "'${SEC}'",
"dur": "'${dur}'",
"ipfs": "'/ipfs/${ILINK}'",

View File

@ -289,7 +289,7 @@ then
if [[ $(echo "$MIME" | grep 'video') ]]; then
TEXT="<video controls width=100% poster='/ipfs/"${ANIMH}"'><source src='/ipfs/"${IPFSID}"' type='"${MIME}"'></video>
<br>{{!!filesize}} - {{!!dur}} sec. - vtratio = {{!!vtratio}}<br>
<br>{{!!filesize}} - {{!!duration}} sec. - vtratio(dur) = {{!!vtratio}} ({{!!dur}})<br>
"$H1"<h2>"$DESCRIPTION"</h2>"
TidType="text/vnd.tiddlywiki" ## MAYBE REAL ONCE TW CAN SHOW ATTACHED IPFS VIDEO (TODO: TESTINGS)