mirror of
https://github.com/snobu/destreamer.git
synced 2026-01-17 05:22:18 +00:00
Breaking changes in CLI params
This commit is contained in:
31
README.md
31
README.md
@@ -85,21 +85,33 @@ Options:
|
||||
[boolean] [default: false]
|
||||
```
|
||||
|
||||
Make sure you use the right escape char for your shell if using line breaks (as this example shows).
|
||||
Make sure you use the right escape char for your shell if using line breaks.
|
||||
|
||||
For PowerShell your escape char is the backtick (`) instead of backslash (\\), for cmd.exe use caret (^).
|
||||
|
||||
```
|
||||
$ node destreamer.js --username username@example.com --outputDirectory "videos" \
|
||||
Bash —
|
||||
```bash
|
||||
./destreamer.sh --username username@example.com --outputDirectory "videos" \
|
||||
--videoUrls "https://web.microsoftstream.com/video/VIDEO-1" \
|
||||
"https://web.microsoftstream.com/video/VIDEO-2" \
|
||||
"https://web.microsoftstream.com/video/VIDEO-3"
|
||||
"https://web.microsoftstream.com/video/VIDEO-2"
|
||||
```
|
||||
|
||||
PowerShell —
|
||||
```powershell
|
||||
.\destreamer.ps1 --username username@example.com --outputDirectory "videos" `
|
||||
--videoUrls "https://web.microsoftstream.com/video/VIDEO-1" `
|
||||
"https://web.microsoftstream.com/video/VIDEO-2"
|
||||
```
|
||||
|
||||
cmd.exe —
|
||||
```cmd
|
||||
destreamer --username username@example.com --outputDirectory "videos" ^
|
||||
--videoUrls "https://web.microsoftstream.com/video/VIDEO-1" ^
|
||||
"https://web.microsoftstream.com/video/VIDEO-2"
|
||||
```
|
||||
|
||||
You can create a `.txt` file containing your video URLs, one video per line. The text file can have any name, followed by the `.txt` extension. Run destreamer as follows:
|
||||
```
|
||||
$ node destreamer.js --username username@example.com --outputDirectory "videos" \
|
||||
--videoUrls list.txt
|
||||
./destreamer.sh --username username@example.com --outputDirectory "videos" \
|
||||
--videoUrlsFile list.txt
|
||||
```
|
||||
|
||||
Passing `--username` is optional. It's there to make logging in faster (the username field will be populated automatically on the login form).
|
||||
@@ -108,7 +120,6 @@ You can use an absolute path for `--outputDirectory`, for example `/mnt/videos`.
|
||||
|
||||
## RANDOM NOTE
|
||||
|
||||
## IMPORTANT NOTE
|
||||
Just ignore this error, we already have what we need to start the download, no time to deal with collaterals -
|
||||
|
||||

|
||||
|
||||
Reference in New Issue
Block a user