X-Git-Url: http://git.plutz.net/?a=blobdiff_plain;f=constants.sh;h=1791215f596fe47accdd53a7de968c7a9291df37;hb=18eaa57ea874a8bf1ebae2a0d758a4bb7632cf37;hp=84d7c7a152ddf0f08336bbeba88bcca529c1ad03;hpb=cc3eaa233f51324cdb20b594b6751468ba78aa4f;p=serve0 diff --git a/constants.sh b/constants.sh index 84d7c7a..1791215 100755 --- a/constants.sh +++ b/constants.sh @@ -1,6 +1,6 @@ #!/bin/zsh -# Copyright 2014 Paul Hänsch +# Copyright 2014,2015 Paul Hänsch # # This file is part of Serve0. # @@ -17,4 +17,9 @@ # You should have received a copy of the GNU Affero General Public License # along with Serve0. If not, see . -_GET['page']=videoview +alias _wiki="stx2any --no-template --link-abbrevs --quote -T html" +[ -z "$_GET[\"p\"]" ] && _GET["p"]=list +pagesize=100 +file_pattern='^.*(mov|ts|mpg|mpeg|mp4|m4v|avi|mkv|flv|sfv|wmv|ogm|webm|iso|rmvb)$' + +data_dirs cache meta mp4 videos thumbs trash by_length transcoded