X-Git-Url: http://git.plutz.net/?a=blobdiff_plain;f=actions%2Fwatch.sh;h=b0a5920b260535c97295945b2dc3f10abe074490;hb=cf2d0b66fa5484a7cc1d66d3c9acf4dcec458b14;hp=d0987177c6e157318b6b46ec4e35ed773100ca1a;hpb=df1060bb806e2d575eee5813b5f6fb0046856aa5;p=serve0 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