svn path=/trunk/; revision=160
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#/}")"
-elif [ -z "$foreign" ]; then
+elif [ -n "$foreign" ]; then
_COOKIE[watch]=server
videourl="${_GET[url]}"
+elif [ -z "$info" ]; then
+ videourl="$(urlsafe "${location#/}")"
else
videourl="$(urlsafe "videos/$info")"
fi