Convert yt-dlp copied video link to mp4 or mp3 for browser compatibility

This commit is contained in:
fred 2024-04-20 22:30:22 +02:00
parent 6fb0996f89
commit 84184acfd4
1 changed files with 6 additions and 1 deletions

View File

@ -232,6 +232,7 @@ if [[ ! ${TIDDLER} ]]; then
## PREPARE VIDEO HTML5 CODE
TEXT="<video controls width=100% poster='/ipfs/"${ANIMH}"'>
<source src='/ipfs/"${ILINK}"' type='"${MIME}"'>
Your browser does not support the video element.
</video>
<br>
{{!!filesize}} - {{!!duration}} sec. - vtratio(dur) = {{!!vtratio}} ({{!!dur}})
@ -241,7 +242,11 @@ if [[ ! ${TIDDLER} ]]; then
TEXT="<audio controls>
<source src='/ipfs/"${ILINK}"' type='"${MIME}"'>
Your browser does not support the audio element.
</audio>"
</audio>
<br>
{{!!filesize}} - {{!!duration}} sec. - vtratio(dur) = {{!!vtratio}} ({{!!dur}})
<br>
<h1><a href='"${ZYURL}"'>"${TITLE}"</a></h1>"
fi
end=`date +%s`