X-Git-Url: http://git.plutz.net/?a=blobdiff_plain;f=pages%2Fcommon.sh;h=9e659bf1c5a3575c6050068fbf5310aec3d85aa7;hb=0619bc447c21ac196734848ae3b0aa786b6eb1ee;hp=b424dff0a914c360052a54e6dbf3f3b69422c0be;hpb=d0b44dc7ebbb28086c66506cbf40b8df32163796;p=serve0
diff --git a/pages/common.sh b/pages/common.sh
index b424dff..9e659bf 100755
--- a/pages/common.sh
+++ b/pages/common.sh
@@ -62,37 +62,21 @@ _printVideo(){
thumb="$(urlsave "thumbs/$info.jpg")"
linkinfo="$(urlsave "$info")"
- [ "$(($length % 60))" -lt 10 ] &&\
- minutes="$(($length / 60)):0$(($length % 60))" ||\
- minutes="$(($length / 60)):$(($length % 60))"
-
- rpiaddr="pfostenpanne.helmchyn.no-ip.biz"
- rpidull="http://${rpiaddr}/?player=play&path=http://jupiter:8000/${video}"
- rpicgi="http://${rpiaddr}/?player=play&path=$(urlsave "http://jupiter:8000/?action=transcode&i=${linkinfo}&t=480")"
-
- [ $height -gt 480 -a $width -gt 480 ] && \
- raspi="RasPi" \
- || raspi="RasPi"
- [ $height -gt 480 ] && \
- alt480="480p" \
- ||unset alt480
- [ $height -gt 240 ] && \
- alt240="240p" \
- ||unset alt240
+ [ "$(($length % 60))" -lt 10 ] && minutes="$(($length / 60)):0$(($length % 60))" \
+ || minutes="$(($length / 60)):$(($length % 60))"
tee "$cache" <
-
+
- $info
- ${alt480} ${alt320} ${alt240} ${raspi}
+ $info
${minutes}min
${width}x${height}
- $(echo -E "$tags" |sed -r 's:\|*([^|]+)\|*:\1:g')
-
+ $(printf %s "$tags" |sed -r 's:\|*([^|]+)\|*:\1:g')
+
VIDEOend
fi
}