mirror of
https://github.com/9001/copyparty.git
synced 2025-08-18 01:22:13 -06:00
yolo search + show in bz + md search
This commit is contained in:
parent
518cf4be57
commit
3f4eae6bce
|
@ -1354,21 +1354,22 @@ function up2k_init(subtle) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
apop(st.busy.head, t);
|
apop(st.busy.head, t);
|
||||||
if (!ok)
|
if (!ok && !t.srch)
|
||||||
return push_t(st.todo.hash, t);
|
return push_t(st.todo.hash, t);
|
||||||
|
|
||||||
t.done = true;
|
t.done = true;
|
||||||
st.bytes.hashed += t.size;
|
st.bytes.hashed += t.size;
|
||||||
st.bytes.finished += t.size;
|
st.bytes.finished += t.size;
|
||||||
pvis.seth(t.n, 1, 'YOLO');
|
pvis.move(t.n, 'bz');
|
||||||
|
pvis.seth(t.n, 1, ok? 'YOLO':'404');
|
||||||
pvis.seth(t.n, 2, "turbo'd");
|
pvis.seth(t.n, 2, "turbo'd");
|
||||||
pvis.move(t.n, 'ok');
|
pvis.move(t.n, ok? 'ok':'ng');
|
||||||
};
|
};
|
||||||
xhr.onload = function (e) {
|
xhr.onload = function (e) {
|
||||||
try { orz(e); } catch (ex) { vis_exh(ex + '', '', '', '', ex); }
|
try { orz(e); } catch (ex) { vis_exh(ex + '', '', '', '', ex); }
|
||||||
};
|
};
|
||||||
|
|
||||||
xhr.open('HEAD', t.purl + uricom_enc(t.name), true);
|
xhr.open('HEAD', t.purl + uricom_enc(t.name) + '?raw', true);
|
||||||
xhr.send();
|
xhr.send();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue