Add an option to limit max concurrent downloads

Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
This commit is contained in:
lzzy12 2019-10-11 19:26:41 +05:30
parent 31510f0c01
commit a50d0427fd
2 changed files with 7 additions and 3 deletions

View File

@ -2,7 +2,7 @@
This is a telegram bot writen in python for mirroring files on the internet to our beloved Google Drive.
## Inspiration
This project is heavily inspired from @out396 's telegram bot which is written in JS.
This project is heavily inspired from @out386 's telegram bot which is written in JS.
## Features supported:
- Mirroring direct download links to google drive
@ -69,4 +69,6 @@ Fill up rest of the fields. Meaning of each fields are discussed below:
- Start the bot by
```
python3 -m bot
```
```
###### You can limit maximum concurrent downloads by changing the value of MAX_CONCURRENT_DOWNLOADS in aria.sh. By default, it's set to 2

View File

@ -1,5 +1,7 @@
export MAX_DOWNLOAD_SPEED=0
export MAX_CONCURRENT_DOWNLOADS=2
aria2c --enable-rpc --rpc-listen-all=false --rpc-listen-port 6800 \
--max-connection-per-server=10 --rpc-max-request-size=1024M \
--seed-time=0.01 --min-split-size=10M --follow-torrent=mem --split=10 \
--daemon=true --allow-overwrite=true --max-overall-download-limit=$MAX_DOWNLOAD_SPEED --max-overall-upload-limit=1K
--daemon=true --allow-overwrite=true --max-overall-download-limit=$MAX_DOWNLOAD_SPEED \
--max-overall-upload-limit=1K --max-concurrent-downloads=$MAX_CONCURRENT_DOWNLOADS