Hello , help write a scripting with 2 simultaneous constraints :
- maximum speed for downloads files AVI or TAR - 50 kB/s
and maximum 1 simultaneous downloads files these types (AVI or TAR) for single IP-adress.
I want, one IP could not simultaneously download 2 or more movies (avi) or archives (tar). Also could not download using "Download manager" with multiple streams . In this case, the download speed of these types of files should not exceed 50 kB/s.
I understand that it is necessary to add the above script
limit on the number of simultaneous downloads for single adress
[download]
{.set speed limit for connection|
{.switch| %item-ext%|| avi tar|50 | -1 .}
.}
I think, to use the command ".current downloads", but not know how.
Tell me, please .