mirror of
https://github.com/9001/copyparty.git
synced 2025-10-03 01:39:26 +02:00
well that was dumb
This commit is contained in:
parent
ee0a060b79
commit
49470c05fa
3 changed files with 8 additions and 6 deletions
|
@ -177,6 +177,7 @@ async function a_up2k_namefilter(good_files, nil_files, bad_files, hooks) {
|
|||
function process_id_list(txt) {
|
||||
var wanted_ids = new Set(txt.trim().split('\n')),
|
||||
name_id = {},
|
||||
now = Date.now(),
|
||||
wanted_names = new Set(), // basenames with a wanted ID
|
||||
wanted_files = new Set(); // filedrops
|
||||
|
||||
|
@ -206,7 +207,7 @@ async function a_up2k_namefilter(good_files, nil_files, bad_files, hooks) {
|
|||
if (wanted_names.has(name)) {
|
||||
wanted_files.add(good_files[a]);
|
||||
|
||||
var subdir = `${name_id[name]}-${Date.now()}-${a}`;
|
||||
var subdir = `${name_id[name]}-${now}`;
|
||||
good_files[a][1] = subdir + '/' + good_files[a][1].split(/\//g).pop();
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue