]> git.plutz.net Git - serve0/commitdiff
deliver original video, where name faking is unnecessary
authorpaul <paul@plutz.net>
Thu, 20 Jul 2017 12:35:31 +0000 (12:35 +0000)
committerpaul <paul@plutz.net>
Thu, 20 Jul 2017 12:35:31 +0000 (12:35 +0000)
svn path=/trunk/; revision=187

actions/watch.sh

index 4e42ed216e65ae3002217b6f6bbc3500cbf79d1c..596ca32ad43c96bcd7d4c26410d2369f9b57ad34 100755 (executable)
@@ -26,6 +26,8 @@ if [ "${_COOKIE[fakemp4]}" = yes ]; then
   if [ "$info" != "${fakename}.mp4" ]; then
     [ -e "${_DATA}/mp4/${fakename}.mp4" ] || ln -s "${_DATA}/videos/$info" "${_DATA}/mp4/${fakename}.mp4"
     videourl="$(urlsafe "mp4/${fakename}.mp4")"
+  else
+    videourl="$(urlsafe "videos/$info")"
   fi
 elif [ -n "$foreign" ]; then
   _COOKIE[watch]=server