mirror of
https://cdm-project.com/Download-Tools/udemy-downloader.git
synced 2025-04-30 01:54:25 +02:00
Reduce max number of current downloads a user can specify
This commit is contained in:
parent
2afef1cb41
commit
108d3bd19a
8
main.py
8
main.py
@ -1305,7 +1305,7 @@ if __name__ == "__main__":
|
||||
dest="concurrent_downloads",
|
||||
type=int,
|
||||
help=
|
||||
"The number of maximum concurrent downloads for segments (HLS and DASH, must be a number 1-50)",
|
||||
"The number of maximum concurrent downloads for segments (HLS and DASH, must be a number 1-30)",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--skip-lectures",
|
||||
@ -1392,9 +1392,9 @@ if __name__ == "__main__":
|
||||
if concurrent_downloads <= 0:
|
||||
# if the user gave a number that is less than or equal to 0, set cc to default of 10
|
||||
concurrent_downloads = 10
|
||||
elif concurrent_downloads > 50:
|
||||
# if the user gave a number thats greater than 50, set cc to the max of 50
|
||||
concurrent_downloads = 50
|
||||
elif concurrent_downloads > 30:
|
||||
# if the user gave a number thats greater than 30, set cc to the max of 30
|
||||
concurrent_downloads = 30
|
||||
|
||||
aria_ret_val = check_for_aria()
|
||||
if not aria_ret_val:
|
||||
|
Loading…
x
Reference in New Issue
Block a user