Software > Beta

speed limit for file format

(1/2) > >>

eddy:
hi, i don't want to let users download songs fast because they can listen mp3 on 320kbps (40KB/s)
could you add separate speed limits for formats or folders/files? sorry can't find futures topic.

rejetto:
there's no such feature and will likely never be.
But it can be done by scripting

Add an event script (menu > other options)
like this

--- Code: ---[download]
{.set speed limit for connection|
  {.switch| %item-ext%|| mp3|40 | -1 .}
.}

--- End code ---

if you want, you can complicate things, like adding OGG files to mp3, with same speed, and having other speed for AVI files. Here it is


--- Code: ---[download]
{.set speed limit for connection|
  {.switch| %item-ext%|| mp3 ogg|40 | avi|200 | -1 .}
.}

--- End code ---

eddy:
what else can i script and how?
will HFS 3 relised?(which should have upnp support as you said)

rejetto:
scripting is so powerful that's hard to be told what you can do with it.
HFS 3 is under construction, but i don't really have the time to work on it since long.

DAD1977:
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


--- Code: ---[download]
{.set speed limit for connection|
  {.switch| %item-ext%|| avi tar|50 | -1 .}
.}
--- End code ---

I think, to use the command ".current downloads", but not know how.
Tell me, please .

Navigation

[0] Message Index

[#] Next page

Go to full version