From 77a26b975ad1dfdff620ec9156b53d6c1c032f92 Mon Sep 17 00:00:00 2001 From: paul Date: Mon, 25 May 2015 12:40:48 +0000 Subject: [PATCH] consider height *and* width when deciding whether raspi should transcode svn path=/trunk/; revision=50 --- pages/common.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/common.sh b/pages/common.sh index 739f4ca..5e23314 100755 --- a/pages/common.sh +++ b/pages/common.sh @@ -67,10 +67,10 @@ _printVideo(){ minutes="$(($length / 60)):$(($length % 60))" rpiaddr="$(host pfostenpanne |sed -r 's;^.* ([0-9\.]+)$;\1;')" - rpidull="http://${rpiaddr}/?path=http://jupiter:8000/${video}" - rpicgi="http://${rpiaddr}/?path=$(urlsave "http://jupiter:8000/?action=transcode&i=${linkinfo}&t=480")" + 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 ] && \ + [ $height -gt 480 -a $width -gt 480 ] && \ raspi="RasPi" \ || raspi="RasPi" [ $height -gt 480 ] && \ -- 2.39.2