]> git.plutz.net Git - serve0/blobdiff - actions/transcode.sh
adopted update in shcgi
[serve0] / actions / transcode.sh
old mode 100644 (file)
new mode 100755 (executable)
index fd169b5..427c154
@@ -1,7 +1,7 @@
 #!/bin/zsh
 
-info="$_GET[\"i\"]"
-target="$_GET[\"t\"]"
+info="${_GET[i]}"
+target="${_GET[t]}"
 video="${_DATA}/videos/$info"
 meta="${_DATA}/meta/$info.meta"
 trans="${_DATA}/transcoded/${info}.${target}p.webm"
@@ -16,4 +16,4 @@ if ! [ -f "$trans" ]; then
 fi
 
 echo "Location: /transcoded/${info}.${target}p.webm"
-echo
+echo