From 7ddf67832402f4b91a7389e9808f65d1d617d222 Mon Sep 17 00:00:00 2001 From: Adrian Calinescu Date: Thu, 26 Mar 2020 16:39:36 +0200 Subject: [PATCH 1/4] Update README.md --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5946bb2..5ddf2e0 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,6 @@ Destreamer takes a [honeybadger](https://www.youtube.com/watch?v=4r7wHMg5Yjg) ap ## USAGE -* 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) * `npm install` to restore packages* `npm install` to restore packages * `npm run -s build` to transpile TypeScript to JavaScript @@ -69,6 +68,9 @@ You can use an absolute path for `--outputDirectory`, for example `/mnt/videos`. To choose preferred video format and quality you can use the `-f` (`--format`) option. It exposes a native [`youtube-dl` parameter][4]. If you do not pass this parameter then `youtube-dl` will download the best available quality for each video. +## IMPORTANT NOTE +For now you need to keep the puppeteer browser window open (the one that pops up for logging in) if you download more than one video in one go. + ## EXPECTED OUTPUT ``` From 229a0dfd52b40c72c599c3439d354e3e15be97ee Mon Sep 17 00:00:00 2001 From: Adrian Calinescu Date: Sat, 28 Mar 2020 22:58:06 +0200 Subject: [PATCH 2/4] Cleanup README --- README.md | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/README.md b/README.md index 5ddf2e0..007eece 100644 --- a/README.md +++ b/README.md @@ -19,13 +19,6 @@ Roadmap - Send a quality PR first and i'll add you as a contributor to the repository. -## NEW `dev` BRANCH! - -This is now a TypeScript project if you checkout the `dev` branch. -All new development happens on `dev` branch. - -Use the `master` branch for the older vanilla JavaScript version. - ## DISCLAIMER Hopefully this doesn't break the end user agreement for Microsoft Stream. Since we're simply saving the HLS stream to disk as if we were a browser, this does not abuse the streaming endpoints. However i take no responsibility if either Microsoft or your Office 365 admins request a chat with you in a small white room. @@ -41,7 +34,7 @@ Destreamer takes a [honeybadger](https://www.youtube.com/watch?v=4r7wHMg5Yjg) ap ## USAGE -* `npm install` to restore packages* `npm install` to restore packages +* `npm install` to restore packages * `npm run -s build` to transpile TypeScript to JavaScript ``` @@ -104,9 +97,5 @@ video:186494kB audio:5380kB subtitle:0kB other streams:0kB global headers:0kB mu The video is now saved under `videos/`, or whatever the `outputDirectory` const points to. -## _IT JUST KEEPS CRASHING FOR ME!_ -Check out this issue if it keeps crashing for you - -https://github.com/snobu/destreamer/issues/6 - [4]: https://github.com/ytdl-org/youtube-dl/blob/master/README.md#format-selection From 7a2ac501c9753f2dd2a47a1aaf02a48686f854cf Mon Sep 17 00:00:00 2001 From: Adrian Calinescu Date: Sat, 28 Mar 2020 23:39:36 +0200 Subject: [PATCH 3/4] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 007eece..31e1989 100644 --- a/README.md +++ b/README.md @@ -57,6 +57,7 @@ $ node destreamer.js --username username@example.com --outputDirectory "videos" "https://web.microsoftstream.com/video/VIDEO-3" ``` You can use an absolute path for `--outputDirectory`, for example `/mnt/videos`. +Your video URLs **must** include the URL schema (the leading `https://`). To choose preferred video format and quality you can use the `-f` (`--format`) option. It exposes a native [`youtube-dl` parameter][4]. If you do not pass this parameter then `youtube-dl` will download the best available quality for each video. From f0eca47a4ff9d7aa10be3ec103ff4a53562b31c7 Mon Sep 17 00:00:00 2001 From: Adrian Calinescu Date: Sat, 28 Mar 2020 23:40:24 +0200 Subject: [PATCH 4/4] Fix URL schema is mandatory --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 31e1989..4b21654 100644 --- a/README.md +++ b/README.md @@ -57,6 +57,7 @@ $ node destreamer.js --username username@example.com --outputDirectory "videos" "https://web.microsoftstream.com/video/VIDEO-3" ``` You can use an absolute path for `--outputDirectory`, for example `/mnt/videos`. + Your video URLs **must** include the URL schema (the leading `https://`). To choose preferred video format and quality you can use the `-f` (`--format`) option. It exposes a native [`youtube-dl` parameter][4].