diff --git a/src/deep.js b/src/deep.js index 04c7c18d..63fa653d 100644 --- a/src/deep.js +++ b/src/deep.js @@ -128,6 +128,10 @@ async function scrapeRelease(baseRelease, entitiesBySlug, type = 'scene') { const pathname = new URL(baseRelease.url).pathname.replace(/\//g, '_'); + if (windows.has(pathname)) { + logger.debug(`Closing window for ${pathname}`); + } + windows.get(pathname)?.close(); windows.delete(pathname);