genlist \
| if [ -n "$search" ] ; then
+ debug "Applying search: ${search}"
xargs -d '\n' printf "${_DATA}/meta/%s.meta\n" \
| xargs -d '\n' egrep -sil "$search" \
| sed -r 's;^.*/;;;s;\.meta$;;'
- elif [ "$filterex" != "q0" ]; then
+ elif [ -n "$filter" ]; then
+ debug "Applying filters: ${filter} ++ ${filterex}"
xargs -d '\n' printf "${_DATA}/meta/%s.meta\n" \
| xargs -d '\n' sed -srn ":a;N;2!ba;{${filterex}}"
else
+ debug "No search or filtering"
cat
fi \
| sed -n "$page,$(($page + $pagesize - 1))p" \