]> git.plutz.net Git - serve0/commitdiff
allow download in tree view
authorpaul <paul@plutz.net>
Tue, 6 Oct 2015 00:01:28 +0000 (00:01 +0000)
committerpaul <paul@plutz.net>
Tue, 6 Oct 2015 00:01:28 +0000 (00:01 +0000)
svn path=/trunk/; revision=96

actions/watch.sh

index d0987177c6e157318b6b46ec4e35ed773100ca1a..b0a5920b260535c97295945b2dc3f10abe074490 100755 (executable)
@@ -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