elif [ -n "$foreign" ]; then
_COOKIE[watch]=server
videourl="${_GET[url]}"
- watch_link="${_GET[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]}")"
+ redirect "${rpiaddr}&url=$(urlsafe "http://${HTTP_HOST}/${videourl}")&return=$(urlsafe "http://${HTTP_HOST}/${_POST[page]}")"
;;
480p)
[ $height -gt 480 ] && redirect "?action=transcode&i=${linkinfo}&t=480" \