From 94b22476b017682875212d6c569b221056dd7bb7 Mon Sep 17 00:00:00 2001 From: paul Date: Wed, 8 Feb 2017 14:24:20 +0000 Subject: [PATCH] send reference to return page when playing externally svn path=/trunk/; revision=176 --- actions/watch.sh | 4 ++-- templates/playctl.html.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/actions/watch.sh b/actions/watch.sh index 5e02819..5aff945 100755 --- a/actions/watch.sh +++ b/actions/watch.sh @@ -27,7 +27,7 @@ if [ "${_COOKIE[fakemp4]}" = yes ] && [ "${info##*.}" != mp4 ]; then 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 @@ -37,7 +37,7 @@ 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]}")" + 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" \ diff --git a/templates/playctl.html.sh b/templates/playctl.html.sh index 28f51cf..40244a3 100755 --- a/templates/playctl.html.sh +++ b/templates/playctl.html.sh @@ -1,4 +1,4 @@ -# Copyright 2014 - 2016 Paul Hänsch +# Copyright 2014 - 2017 Paul Hänsch # # This file is part of Serve0 # @@ -29,7 +29,7 @@ cat < - Dismiss + Dismiss -- 2.39.2