Removing query methods from XEmpire release.

This commit is contained in:
DebaucheryLibrarian 2021-12-02 00:45:22 +01:00
parent 3983d3464f
commit 1918dd4ad5
2 changed files with 6 additions and 1 deletions

View File

@ -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;
} }

View File

@ -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);