# You should have received a copy of the GNU Affero General Public License
# along with Serve0. If not, see <http://www.gnu.org/licenses/>.
+info="${_GET[i]}"
. $_EXEC/pages/common.sh
-info="$_GET[\"i\"]"
-
meta="${_DATA}/meta/$info.meta"
video="${_DATA}/videos/$info"
tags="$(sed -n '2p' "$meta")"
eval $(mplayer -noconsolecontrols -input file=/dev/null -slave -really-quiet -identify -frames 0 -ao null -vo null "$video" 2>/dev/null\
| sed -rn 's:ID_VIDEO_WIDTH=(.*):width=\1:p;s:ID_VIDEO_HEIGHT=(.*):height=\1:p;s:ID_LENGTH=(.*)(\..*)$:length=\1:p;')
video="videos/$info"
-
-case "$1" in
- title)
- echo "Videos"
- ;;
- css)
- . ${_EXEC}/templates/common.css.sh
- ;;
- body)
- . ${_EXEC}/templates/view.html.sh
- ;;
-esac