}
w_prefs(){
- local tm tf
+ local tm tf td
tm=''; [ "$(COOKIE mode)" = index ] && tm=' '
tf=''; [ "$(COOKIE fakemp4)" = yes ] && tf=checked
+ td=''; [ "$(COOKIE downscale)" = yes ] && td=checked
printf '
[form #prefs method="POST" action="?a=setprefs"
[input #prefs_ps type=number name=pagesize value="%s"][br]
[radio "mode" "browse" %s #prefs_modebrowse] [label for=prefs_modebrowse Browse Folders][br]
[radio "mode" "index" %s #prefs_modeindex ] [label for=prefs_modeindex View Full Index][br]
- [checkbox "fakemp4" "yes" %s #prefs_fmp4] [label for=prefs_fmp4 Fake .MP4 file ending][br]
+ [checkbox "fakemp4" "yes" %s #prefs_fmp4] [label for=prefs_fmp4 Fake .MP4 file type][br]
+ [checkbox "downscale" "yes" %s #prefs_downscale] [label for=prefs_downscale Prefer downscale to 480p][br]
+ [submit "index" "update" Force Index Update][br]
[submit "store" "store" Set Cookie]
]
' \
"$w_refuri" "$LISTSIZE" \
- "${tm:-checked}" "${tm:+checked}" "$tf"
+ "${tm:-checked}" "${tm:+checked}" "$tf" "$td"
}
w_index(){
w_tagging(){
local tag category
- printf '[a href="#multitag" Add Tags]
+ printf '[a href="#multitag" Add Tags / Remove Tags]
[div #multitag [input type="hidden" name="ref" value="%s"]' "$w_refuri"
printf '[a href="#" Hide][br]'
printf ']]'
done
- printf '[fieldset [legend New:][textarea name=newtag\n][button type=Submit Add Tags]]]'
+ printf '[fieldset [legend New:][textarea name=newtag\n]
+ [submit "op" "del" Remove Tags][submit "op" "add" Add Tags]
+ ]]'
}