From 7325a10deded9a135b354e77d231a0ab38e13925 Mon Sep 17 00:00:00 2001 From: paul Date: Mon, 28 Nov 2016 20:38:32 +0000 Subject: [PATCH] bugfix: sequence of mode checks svn path=/trunk/; revision=160 --- actions/watch.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/actions/watch.sh b/actions/watch.sh index 5d503b0..5b4119f 100755 --- a/actions/watch.sh +++ b/actions/watch.sh @@ -28,11 +28,11 @@ linkinfo="$(urlsafe "$info")" if [ "${_COOKIE[fakemp4]}" = yes ] && [ "${info##*.}" != mp4 ]; then [ -e "${_DATA}/videos/${info%.*}.mp4" ] || ln -s "${_DATA}/videos/$info" "${_DATA}/mp4/${info%.*}.mp4" videourl="$(urlsafe "mp4/${info%.*}.mp4")" -elif [ -z "$info" ]; then - videourl="$(urlsafe "${location#/}")" -elif [ -z "$foreign" ]; then +elif [ -n "$foreign" ]; then _COOKIE[watch]=server videourl="${_GET[url]}" +elif [ -z "$info" ]; then + videourl="$(urlsafe "${location#/}")" else videourl="$(urlsafe "videos/$info")" fi -- 2.39.2