1
0
mirror of https://github.com/snobu/destreamer.git synced 2026-02-06 23:28:21 +00:00

Fix first login failing session evaluation (#191)

* fix first login triggering early using '-k' option

* updated specialized Destreamer versions
This commit is contained in:
lukaarma
2020-07-23 21:48:10 +02:00
committed by GitHub
parent 3144014a34
commit 23b71d47d4
2 changed files with 8 additions and 4 deletions

View File

@@ -80,7 +80,7 @@ async function DoInteractiveLogin(url: string, username?: string): Promise<Sessi
remember the credentials or it could still prompt the user for a password */
}
await browser.waitForTarget((target: puppeteer.Target) => target.url().includes('microsoftstream.com'), { timeout: 150000 });
await browser.waitForTarget((target: puppeteer.Target) => target.url().endsWith('microsoftstream.com/'), { timeout: 150000 });
logger.info('We are logged in.');
let session: Session | null = null;