From 0a576d1d2ce23eb3043adcd7adb7b45c89ba6051 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Tue, 17 Jul 2018 03:28:20 +0200 Subject: [PATCH] do not require reference uri in advsearch --- advsearch.sh | 3 +-- cgilite | 2 +- index.cgi | 2 -- widgets.sh | 3 +-- 4 files changed, 3 insertions(+), 7 deletions(-) diff --git a/advsearch.sh b/advsearch.sh index 6f85ed2..38cb170 100644 --- a/advsearch.sh +++ b/advsearch.sh @@ -1,7 +1,6 @@ #!/bin/sh f='' -ref="$(POST ref)" order="$(POST order |grep -m1 -xE 'Name|Date|Length' || printf Name)" for n in 1 2 3 4 5 6 7 8 9; do @@ -17,4 +16,4 @@ for n in 1 2 3 4 5 6 7 8 9; do done f="${f%^}" -REDIRECT "${ref%%\?*}?o=${order}&f=${f}" +REDIRECT "$(URL "${ITEM}")?o=${order}&f=${f}" diff --git a/cgilite b/cgilite index cbd426d..d490f72 160000 --- a/cgilite +++ b/cgilite @@ -1 +1 @@ -Subproject commit cbd426df72dee35e5920de18084ca6770454481d +Subproject commit d490f720aed2ad75f580ac526f83c581d659633b diff --git a/index.cgi b/index.cgi index 7a1a3ef..d6535e7 100755 --- a/index.cgi +++ b/index.cgi @@ -3,8 +3,6 @@ [ -z "${_EXEC%/}" ] && _EXEC="$(realpath "${0%/*}")" || _EXEC="${_EXEC%/}" [ -z "${_DATA%/}" ] && _DATA=. || _DATA="${_DATA%/}" - - file_pattern='^.*\.(mov|ts|mpg|mpeg|mp4|m4v|avi|mkv|flv|sfv|wmv|ogm|ogv|webm|iso|rmvb)$' . "$_EXEC/cgilite/cgilite.sh" diff --git a/widgets.sh b/widgets.sh index 1b5f770..f9c0380 100644 --- a/widgets.sh +++ b/widgets.sh @@ -74,8 +74,7 @@ w_advsearch(){ [a href="#" Hide] [p .help Select multiple tags from each category by holding down the [strong Ctrl] key on your keyboard.[br] Refine the search further by setting additional search tags using the [strong "+and"] button.] - [hidden "ref" "%s"] - ' "$w_refuri" + ' for n in 1 2 3 4 5 6 7 8 9 10; do f="${filter%%^*}"; filter="${filter#*^}" -- 2.39.2