Convert yt-dlp copied video link to mp4 or mp3 for browser compatibility
This commit is contained in:
parent
6fb0996f89
commit
84184acfd4
|
@ -232,6 +232,7 @@ if [[ ! ${TIDDLER} ]]; then
|
||||||
## PREPARE VIDEO HTML5 CODE
|
## PREPARE VIDEO HTML5 CODE
|
||||||
TEXT="<video controls width=100% poster='/ipfs/"${ANIMH}"'>
|
TEXT="<video controls width=100% poster='/ipfs/"${ANIMH}"'>
|
||||||
<source src='/ipfs/"${ILINK}"' type='"${MIME}"'>
|
<source src='/ipfs/"${ILINK}"' type='"${MIME}"'>
|
||||||
|
Your browser does not support the video element.
|
||||||
</video>
|
</video>
|
||||||
<br>
|
<br>
|
||||||
{{!!filesize}} - {{!!duration}} sec. - vtratio(dur) = {{!!vtratio}} ({{!!dur}})
|
{{!!filesize}} - {{!!duration}} sec. - vtratio(dur) = {{!!vtratio}} ({{!!dur}})
|
||||||
|
@ -241,7 +242,11 @@ if [[ ! ${TIDDLER} ]]; then
|
||||||
TEXT="<audio controls>
|
TEXT="<audio controls>
|
||||||
<source src='/ipfs/"${ILINK}"' type='"${MIME}"'>
|
<source src='/ipfs/"${ILINK}"' type='"${MIME}"'>
|
||||||
Your browser does not support the audio element.
|
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
|
fi
|
||||||
|
|
||||||
end=`date +%s`
|
end=`date +%s`
|
||||||
|
|
Loading…
Reference in New Issue