search by upload time

This commit is contained in:
ed 2023-10-19 23:57:27 +00:00
parent 801da8079b
commit c7f826dbbe
3 changed files with 19 additions and 1 deletions

View file

@ -181,6 +181,11 @@ class U2idx(object):
is_date = True is_date = True
have_up = True have_up = True
elif v == "up_at":
v = "up.at"
is_date = True
have_up = True
elif v == "path": elif v == "path":
v = "trim(?||up.rd,'/')" v = "trim(?||up.rd,'/')"
va.append("\nrd") va.append("\nrd")

View file

@ -1475,6 +1475,8 @@ input.eq_gain {
width: calc(100% - 2em); width: calc(100% - 2em);
margin: .3em 0 0 1.4em; margin: .3em 0 0 1.4em;
} }
@media (max-width: 130em) { #srch_form.tags #tq_raw { width: calc(100% - 34em) } }
@media (max-width: 95em) { #srch_form.tags #tq_raw { width: calc(100% - 2em) } }
#tq_raw td+td { #tq_raw td+td {
width: 100%; width: 100%;
} }

View file

@ -354,11 +354,14 @@ var Ls = {
"s_rd": "path", "s_rd": "path",
"s_fn": "name", "s_fn": "name",
"s_ta": "tags", "s_ta": "tags",
"s_ua": "up@",
"s_ad": "adv.", "s_ad": "adv.",
"s_s1": "minimum MiB", "s_s1": "minimum MiB",
"s_s2": "maximum MiB", "s_s2": "maximum MiB",
"s_d1": "min. iso8601", "s_d1": "min. iso8601",
"s_d2": "max. iso8601", "s_d2": "max. iso8601",
"s_u1": "uploaded after",
"s_u2": "and/or before",
"s_r1": "path contains   (space-separated)", "s_r1": "path contains   (space-separated)",
"s_f1": "name contains   (negate with -nope)", "s_f1": "name contains   (negate with -nope)",
"s_t1": "tags contains   (^=start, end=$)", "s_t1": "tags contains   (^=start, end=$)",
@ -828,11 +831,14 @@ var Ls = {
"s_rd": "sti", "s_rd": "sti",
"s_fn": "navn", "s_fn": "navn",
"s_ta": "meta", "s_ta": "meta",
"s_ua": "up@",
"s_ad": "avns.", "s_ad": "avns.",
"s_s1": "større enn ↓ MiB", "s_s1": "større enn ↓ MiB",
"s_s2": "mindre enn ↓ MiB", "s_s2": "mindre enn ↓ MiB",
"s_d1": "nyere enn <dato>", "s_d1": "nyere enn <dato>",
"s_d2": "eldre enn", "s_d2": "eldre enn",
"s_u1": "lastet opp etter",
"s_u2": "og/eller før",
"s_r1": "mappenavn inneholder", "s_r1": "mappenavn inneholder",
"s_f1": "filnavn inneholder", "s_f1": "filnavn inneholder",
"s_t1": "sang-info inneholder", "s_t1": "sang-info inneholder",
@ -4999,6 +5005,11 @@ document.onkeydown = function (e) {
[ [
L.s_ad, L.s_ad,
["adv", "adv", L.s_a1, "30", "key>=1A key<=2B .bpm>165"] ["adv", "adv", L.s_a1, "30", "key>=1A key<=2B .bpm>165"]
],
[
L.s_ua,
["utl", "ut_min", L.s_u1, "14", "2007-04-08"],
["utu", "ut_max", L.s_u2, "14", "2038-01-19"]
] ]
]; ];
@ -5143,7 +5154,7 @@ document.onkeydown = function (e) {
} }
if (k.length == 3) { if (k.length == 3) {
q += k.replace(/sz/, 'size').replace(/dt/, 'date').replace(/l$/, ' >= ').replace(/u$/, ' <= ') + tv; q += k.replace(/l$/, ' >= ').replace(/u$/, ' <= ').replace(/^sz/, 'size').replace(/^dt/, 'date').replace(/^ut/, 'up_at') + tv;
continue; continue;
} }