forked from DebaucheryLibrarian/traxxx
Removing query methods from XEmpire release.
This commit is contained in:
parent
3983d3464f
commit
1918dd4ad5
|
@ -14,6 +14,8 @@ async function fetchScene(url, site, baseRelease, options) {
|
||||||
release.channel = siteSlug;
|
release.channel = siteSlug;
|
||||||
release.director = 'Mason';
|
release.director = 'Mason';
|
||||||
|
|
||||||
|
delete release.query;
|
||||||
|
|
||||||
return release;
|
return release;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -11,10 +11,13 @@ async function init() {
|
||||||
let peak = 0;
|
let peak = 0;
|
||||||
const files = await fs.readdir('./html');
|
const files = await fs.readdir('./html');
|
||||||
|
|
||||||
|
// const dom = new JSDOM('<html><body></body></html>', { runScripts: 'dangerously' });
|
||||||
|
|
||||||
await Promise.map(Array.from({ length: 10 }).map(() => files).flat(), async (filename) => {
|
await Promise.map(Array.from({ length: 10 }).map(() => files).flat(), async (filename) => {
|
||||||
const html = await fs.readFile(`./html/${filename}`, 'utf8');
|
const html = await fs.readFile(`./html/${filename}`, 'utf8');
|
||||||
const dom = new JSDOM(html);
|
const dom = new JSDOM(html);
|
||||||
|
|
||||||
|
// dom.window.document.body.innerHTML = html;
|
||||||
dom.window.close();
|
dom.window.close();
|
||||||
|
|
||||||
const usage = process.memoryUsage.rss() / 1000000;
|
const usage = process.memoryUsage.rss() / 1000000;
|
||||||
|
@ -24,7 +27,7 @@ async function init() {
|
||||||
|
|
||||||
await waitImmediate;
|
await waitImmediate;
|
||||||
}, {
|
}, {
|
||||||
concurrency: 100,
|
concurrency: 1,
|
||||||
});
|
});
|
||||||
|
|
||||||
await Promise.delay(2000);
|
await Promise.delay(2000);
|
||||||
|
|
Loading…
Reference in New Issue