X-Git-Url: http://git.plutz.net/?a=blobdiff_plain;f=actions%2Fwatch.sh;h=5b4119f7612f6b51c32f367f9b4655e5d4531be2;hb=7325a10deded9a135b354e77d231a0ab38e13925;hp=5d503b07d70a08737dbc364ddea5d553b4bd0068;hpb=1418058c8b8777e0af4aa21236e12d676942eee9;p=serve0 diff --git a/actions/watch.sh b/actions/watch.sh index 5d503b0..5b4119f 100755 --- a/actions/watch.sh +++ b/actions/watch.sh @@ -28,11 +28,11 @@ 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#/}")" -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