mirror of
https://cdm-project.com/Download-Tools/udemy-downloader.git
synced 2025-04-30 08:14:26 +02:00
Update README
+ added note about bearer token from env being deprecated + updated example commands to reflect code changes
This commit is contained in:
parent
845c0bde58
commit
c8945b8091
12
README.md
12
README.md
@ -90,13 +90,19 @@ optional arguments:
|
|||||||
--download-assets If specified, lecture assets will be downloaded
|
--download-assets If specified, lecture assets will be downloaded
|
||||||
--download-captions If specified, captions will be downloaded
|
--download-captions If specified, captions will be downloaded
|
||||||
--keep-vtt If specified, .vtt files won't be removed
|
--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
|
--skip-hls If specified, HLS streams will be skipped (faster fetching, HLS streams usually contain 1080p
|
||||||
quality for non-drm lectures)
|
quality for non-DRM lectures)
|
||||||
--use_mkv If specified, MKV container will be used instead of MP4, subtitles will be muxed (if subtitles
|
--use_mkv If specified, MKV container will be used instead of MP4, subtitles will be muxed (if subtitles
|
||||||
are requested)
|
are requested)
|
||||||
--info If specified, only course information will be printed, nothing will be downloaded
|
--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
|
- Passing a Bearer Token and Course ID as an argument
|
||||||
- `python main.py -c <Course URL> -b <Bearer Token>`
|
- `python main.py -c <Course URL> -b <Bearer Token>`
|
||||||
- `python main.py -c https://www.udemy.com/courses/myawesomecourse -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:
|
- Print course information only:
|
||||||
- `python main.py -c <Course URL> --info`
|
- `python main.py -c <Course URL> --info`
|
||||||
- Specify max number of concurrent downloads:
|
- 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`
|
- `python main.py -c <Course URL> -cd 20`
|
||||||
|
|
||||||
# Credits
|
# Credits
|
||||||
|
2
main.py
2
main.py
@ -1356,7 +1356,7 @@ if __name__ == "__main__":
|
|||||||
"--skip-hls",
|
"--skip-hls",
|
||||||
dest="skip_hls",
|
dest="skip_hls",
|
||||||
action="store_true",
|
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(
|
parser.add_argument(
|
||||||
"--use_mkv",
|
"--use_mkv",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user