]> git.plutz.net Git - serve0/commitdiff
urlsave raspi links
authorpaul <paul@plutz.net>
Fri, 24 Apr 2015 14:34:06 +0000 (14:34 +0000)
committerpaul <paul@plutz.net>
Fri, 24 Apr 2015 14:34:06 +0000 (14:34 +0000)
svn path=/trunk/; revision=41

pages/videoview.sh

index 92459982c93b106d008154f469dc2b5a5e3a9c45..a2ac50852b693a8b3feb5eec74963c142fa63ddc 100755 (executable)
@@ -97,9 +97,10 @@ _printVideo(){
 
     rpiaddr="$(host pfostenpanne |sed -r 's;^.* ([0-9\.]+)$;\1;')"
     rpibase="http://${rpiaddr}/?path=http://jupiter:8000/"
+    rpicgi="http://${rpiaddr}/$(urlsave "?path=http://jupiter:8000/?action=transcode&t=480&i=")"
 
     [ $height -gt 480 ] && \
-       raspi="<a class=\"videolink alt raspi\" href=\"${rpibase}?action=transcode&i=${linkinfo}&t=480\">RasPi</a>" \
+       raspi="<a class=\"videolink alt raspi\" href=\"${rpicgi}${linkinfo}\">RasPi</a>" \
     || raspi="<a class=\"videolink alt raspi\" href=\"${rpibase}${video}\">RasPi</a>"
     [ $height -gt 480 ] && \
       alt480="<a class=\"videolink alt 480p\" href=\"?action=transcode&i=${linkinfo}&t=480\">480p</a>" \