This commit is contained in:
ed 2022-09-23 20:37:37 +02:00
parent d285f7ee4a
commit 1d367a0da0
7 changed files with 17 additions and 16 deletions

View file

@ -42,10 +42,7 @@ class EnvParams(object):
self.t0 = time.time()
self.mod = None
self.cfg = None
try:
self.ox = sys.oxidized
except:
self.ox = False
self.ox = getattr(sys, "oxidized", None)
E = EnvParams()

View file

@ -822,6 +822,7 @@ class HttpCli(object):
fn = os.devnull
params.update(open_ka)
assert fn
if rnd and not self.args.nw:
fn = self.rand_name(fdir, fn, rnd)

View file

@ -686,9 +686,11 @@ class Magician(object):
mime = magic.from_file(fpath, mime=True)
mime = re.split("[; ]", mime, 1)[0]
ret = EXTS.get(mime)
try:
return EXTS[mime]
except:
pass
if not ret:
mg = mimetypes.guess_extension(mime)
if mg:
return mg[1:]

View file

@ -2811,6 +2811,7 @@ html.b #tree li {
html.b #tree li {
margin-left: .8em;
}
html.b #docul a,
html.b .ntree a {
padding: .6em .2em;
}

View file

@ -471,7 +471,7 @@ var Ls = {
"utl_name": "filnavn",
"utl_stat": "status",
"utl_prog": "progresjon",
"utl_prog": "fremdrift",
"ul_flagblk": "filene har blitt lagt i køen</b><br>men det er en annen nettleserfane som holder på med befaring eller opplastning akkurat nå,<br>så venter til den er ferdig først",
@ -5039,7 +5039,7 @@ var treectl = (function () {
r.reqls = function (url, hpush, back) {
var xhr = new XHR();
xhr.top = url;
xhr.top = url.split('?')[0];
xhr.back = back
xhr.hpush = hpush;
xhr.ts = Date.now();
@ -5102,7 +5102,7 @@ var treectl = (function () {
if (this.hpush && !showfile.active())
hist_push(this.top);
if (!this.back && !treectl.hidden) {
if (!this.back) {
var dirs = [];
for (var a = 0; a < res.dirs.length; a++)
dirs.push(res.dirs[a].href.split('/')[0].split('?')[0]);

View file

@ -235,7 +235,7 @@ function ev(e) {
return;
if (e.preventDefault)
e.preventDefault()
e.preventDefault();
if (e.stopPropagation)
e.stopPropagation();

View file

@ -120,7 +120,7 @@ tmpdir="$(
)"
[ $repack ] && {
old="$tmpdir/pe-copyparty"
old="$tmpdir/pe-copyparty.$(id -u)"
echo "repack of files in $old"
cp -pR "$old/"*{py2,j2,ftp,copyparty} .
}