elif [ -n "$foreign" ]; then
_COOKIE[watch]=server
videourl="${_GET[url]}"
- watch_link="${_POST[return]}"
+ watch_link="w=$(urlsafe "${_GET[return]}")"
elif [ -z "$info" ]; then
videourl="$(urlsafe "${location#/}")"
else
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" \