]> git.plutz.net Git - serve0/blobdiff - globals.sh
ignore case when sorting, i.e. sort lower and upper case names together
[serve0] / globals.sh
index 1bc1ae92bbcbdbba139015894a12f71c4b9a8f0f..b68a8c9e977a803cc0b22868da2d5b8b6054d67a 100755 (executable)
 # along with Serve0.  If not, see <http://www.gnu.org/licenses/>. 
 
 alias _wiki="stx2any --no-template --link-abbrevs --quote -T html"
-file_pattern='^.*(mov|ts|mpg|mpeg|mp4|m4v|avi|mkv|flv|sfv|wmv|ogm|webm|iso|rmvb)$'
+file_pattern='^.*\.(mov|ts|mpg|mpeg|mp4|m4v|avi|mkv|flv|sfv|wmv|ogm|ogv|webm|iso|rmvb)$'
 
-data_dirs cache meta mp4 videos thumbs trash by_length transcoded
+data_dirs cache meta mp4 videos thumbs trash transcoded
 
-PAGE="${_GET[p]:-${PAGE:-list}}"
+PAGE="${_GET[p]:-${PAGE:-browse}}"
+treeroot="${treeroot:-${_DATA}}"
 
 _GET[o]=$( validate "${_GET[o]}"  'Name|Date|Length' Name)
 _GET[pn]=$(validate "${_GET[pn]}" '[1-9][0-9]*' 1)