]> git.plutz.net Git - serve0/blobdiff - actions/watch.sh
slave remote player to local interface, so that tags can be processed
[serve0] / actions / watch.sh
index 5aff94559b1c65d7e32759572d8a7110e711dbda..f79600984ad4dc89a4afd57161f3969a88d96431 100755 (executable)
@@ -36,8 +36,14 @@ fi
 
 case "$_COOKIE[watch]" in
   raspi)
-    rpiaddr="http://atoemchen.helmchyn.no-ip.biz/?action=watch"
-    redirect "${rpiaddr}&url=$(urlsafe "http://${HTTP_HOST}/${videourl}")&return=$(urlsafe "http://${HTTP_HOST}/${_POST[page]}")"
+    #rpiaddr="http://atoemchen.helmchyn.no-ip.biz/?action=watch"
+    #redirect "${rpiaddr}&url=$(urlsafe "http://${HTTP_HOST}/${videourl}")&return=$(urlsafe "http://${HTTP_HOST}/${_POST[page]}")"
+    ncat atoemchen 80 >&- <<-EOF
+       GET /?action=watch&url=$(urlsafe "http://${HTTP_HOST}/${videourl}") HTTP/1.1$(printf \\r)
+       Host: atoemchen$(printf \\r)
+       $(printf \\r)
+       EOF
+    redirect "?p=playctl&${watch_link}w=$(urlsafe "${_POST[page]}#${_GET[i]}")"
   ;;
   480p)
     [ $height -gt 480 ] && redirect "?action=transcode&i=${linkinfo}&t=480" \