diff --git a/platforms/dmm-books.ts b/platforms/dmm-books.ts index 24e27d7..724f8f7 100644 --- a/platforms/dmm-books.ts +++ b/platforms/dmm-books.ts @@ -237,6 +237,11 @@ export function DmmBooks({ db, browser }: { db: Database; browser: Browser }) { const page = await ctx.newPage(); await page.goto("https://accounts.dmm.com/service/login/password"); await page.waitForURL("https://www.dmm.com/", { timeout: 0 }); + await page.goto("https://www.dmm.com/service/-/exchange"); + await Promise.race([ + page.waitForURL("https://www.dmm.com/", { timeout: 0 }), + page.waitForURL("https://www.dmm.co.jp/top/", { timeout: 0 }), + ]); const secrets = await ctx.storageState(); await browser.close(); await db.run(