VTRATIO debug

This commit is contained in:
fred 2022-12-19 19:15:33 +01:00
parent d744beb884
commit 7012630e16
3 changed files with 8 additions and 8 deletions

View File

@ -187,7 +187,7 @@ if [[ ! ${TIDDLER} ]]; then
PLAYLIST=$(yt-dlp --cookies-from-browser $BROWSER --print "%(playlist)s" "${ZYURL}" | sed -r 's/\<./\U&/g' | sed 's/ //g')
EXTRATAG="$CHANNEL $PLAYLIST"
## PREPARE VIDEO HTML5 CODE
TEXT="<video controls width=100% poster='/ipfs/"${ANIMH}"'><source src='/ipfs/"${ILINK}"' type='"${MIME}"'></video><br>{{!!duree}} - {{!!filesize}} - {{!!dur}} sec. (${$VTRATIO})<br><h1><a href='"${ZYURL}"'>"${TITLE}"</a></h1>"
TEXT="<video controls width=100% poster='/ipfs/"${ANIMH}"'><source src='/ipfs/"${ILINK}"' type='"${MIME}"'></video><br>{{!!filesize}} - {{!!dur}} sec. - vtratio ="${$VTRATIO}"<br><h1><a href='"${ZYURL}"'>"${TITLE}"</a></h1>"
end=`date +%s`
dur=`expr $end - $start`

View File

@ -792,12 +792,12 @@ esac
########################################################################
# Screen capture
########################################################################
if [[ $(echo $DISPLAY | cut -d ':' -f 1) == "" ]]; then
espeak "beware taking screen shot in 3 seconds"
sleep 3
espeak "smile"
import -window root ~/.zen/tmp/screen.png
fi
#~ if [[ $(echo $DISPLAY | cut -d ':' -f 1) == "" ]]; then
#~ espeak "beware taking screen shot in 3 seconds"
#~ sleep 3
#~ espeak "smile"
#~ import -window root ~/.zen/tmp/screen.png
#~ fi
###################################
### MOVING FILE TO ~/astroport ####

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>{{!!duree}} - {{!!filesize}} - {{!!dur}} sec. (${$VTRATIO})<br>
<br>{{!!filesize}} - {{!!dur}} sec. - vtratio ="${$VTRATIO}"<br>
"$H1"
<h2>"$DESCRIPTION"</h2>"