Update README

+ added note about bearer token from env being deprecated
+ updated example commands to reflect code changes
This commit is contained in:
Puyodead1 2021-08-02 20:53:07 -04:00
parent 845c0bde58
commit c8945b8091
2 changed files with 10 additions and 4 deletions

View File

@ -90,13 +90,19 @@ optional arguments:
--download-assets If specified, lecture assets will be downloaded
--download-captions If specified, captions will be downloaded
--keep-vtt If specified, .vtt files won't be removed
--skip-hls If specified, hls streams will be skipped (faster fetching) (hls streams usually contain 1080p
quality for non-drm lectures)
--skip-hls If specified, HLS streams will be skipped (faster fetching, HLS streams usually contain 1080p
quality for non-DRM lectures)
--use_mkv If specified, MKV container will be used instead of MP4, subtitles will be muxed (if subtitles
are requested)
--info If specified, only course information will be printed, nothing will be downloaded
```
<br>
### NOTE: Loading bearer token from a .env file or system environment is deprecated and may break in the future, pass the token as a command argument instead!
## Command Examples:
- Passing a Bearer Token and Course ID as an argument
- `python main.py -c <Course URL> -b <Bearer Token>`
- `python main.py -c https://www.udemy.com/courses/myawesomecourse -b <Bearer Token>`
@ -125,7 +131,7 @@ optional arguments:
- Print course information only:
- `python main.py -c <Course URL> --info`
- Specify max number of concurrent downloads:
- `python main.py -c <Course URL> --concurrent-downloads 20`
- `python main.py -c <Course URL> --concurrent-connections 20`
- `python main.py -c <Course URL> -cd 20`
# Credits

View File

@ -1356,7 +1356,7 @@ if __name__ == "__main__":
"--skip-hls",
dest="skip_hls",
action="store_true",
help="If specified, hls streams will be skipped (faster fetching) (hls streams usually contain 1080p quality for non-drm lectures)",
help="If specified, HLS streams will be skipped (faster fetching, HLS streams usually contain 1080p quality for non-DRM lectures)",
)
parser.add_argument(
"--use_mkv",