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