Reduce max number of current downloads a user can specify

This commit is contained in:
Puyodead1 2021-05-30 17:34:03 -04:00
parent 2afef1cb41
commit 108d3bd19a

View File

@ -1305,7 +1305,7 @@ if __name__ == "__main__":
dest="concurrent_downloads", dest="concurrent_downloads",
type=int, type=int,
help= 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( parser.add_argument(
"--skip-lectures", "--skip-lectures",
@ -1392,9 +1392,9 @@ if __name__ == "__main__":
if concurrent_downloads <= 0: if concurrent_downloads <= 0:
# if the user gave a number that is less than or equal to 0, set cc to default of 10 # if the user gave a number that is less than or equal to 0, set cc to default of 10
concurrent_downloads = 10 concurrent_downloads = 10
elif concurrent_downloads > 50: elif concurrent_downloads > 30:
# if the user gave a number thats greater than 50, set cc to the max of 50 # if the user gave a number thats greater than 30, set cc to the max of 30
concurrent_downloads = 50 concurrent_downloads = 30
aria_ret_val = check_for_aria() aria_ret_val = check_for_aria()
if not aria_ret_val: if not aria_ret_val: