From: paul Date: Tue, 6 Oct 2015 00:01:28 +0000 (+0000) Subject: allow download in tree view X-Git-Url: http://git.plutz.net/?a=commitdiff_plain;h=cf2d0b66fa5484a7cc1d66d3c9acf4dcec458b14;p=serve0 allow download in tree view svn path=/trunk/; revision=96 --- 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