From ec0cd2f948585edf93c6386d28a370c1fd217dbe Mon Sep 17 00:00:00 2001 From: Bill Date: Sat, 15 Feb 2020 12:11:10 -0500 Subject: [PATCH] Update README.md --- README.md | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d3d7d75..99b6e08 100644 --- a/README.md +++ b/README.md @@ -33,12 +33,23 @@ Destreamer takes a [honeybadger](https://www.youtube.com/watch?v=4r7wHMg5Yjg) ap * Edit `destreamer.ts` and replace the username const with your own, you may still need to enter your password or go through 2FA if you don't have the STS cookie saved in Chrome. If you do (i.e. you usually log in to Microsoft Stream with Chrome), then you may try turning `headless: false` to `true` for a truly headless experience) ======= * Edit `destreamer.ts` (`.js` if using the vanilla JS master branch) and replace the username const with your own, you may still need to enter your password or go through 2FA if you don't have the STS cookie saved in Chrome. If you do (i.e. you usually log in to Microsoft Stream with Chrome), then you may try turning `headless: false` to `true` for a truly headless experience) -* `npm install` to restore packages -* `npm start ` +* `npm install` to restore packages* `npm install` to restore packages +* `npm run -s build` to transpile TypeScript to JavaScript +* `node ./destreamer.js` +``` +Options: + --help Show help [boolean] + --version Show version number [boolean] + --videoUrls [array] [required] + --username [string] [required] + --outputDirectory [string] [default: "videos"] +``` +* `node destreamer.js --username username@example.com --outputDirectory "C:\videos" --videoUrls "https://web.microsoftstream.com/video/VIDEO-1" "https://web.microsoftstream.com/video/VIDEO-2" "https://web.microsoftstream.com/video/VIDEO-3"` ### To download a list of videos -There's no implementation that does that (yet). There's some work happening to support this, give it some time. +~~There's no implementation that does that (yet). There's some work happening to support this, give it some time.~~ +See usage above. ## EXPECTED OUTPUT