From cf2d0b66fa5484a7cc1d66d3c9acf4dcec458b14 Mon Sep 17 00:00:00 2001 From: paul Date: Tue, 6 Oct 2015 00:01:28 +0000 Subject: [PATCH] allow download in tree view svn path=/trunk/; revision=96 --- actions/watch.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/actions/watch.sh b/actions/watch.sh index d098717..b0a5920 100755 --- a/actions/watch.sh +++ b/actions/watch.sh @@ -27,6 +27,8 @@ 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#/}")" else videourl="$(urlsafe "videos/$info")" fi -- 2.39.2