mcrapet / plowshare

Command-line tool and engine for managing sharing websites
GNU General Public License v3.0
849 stars 88 forks source link

[Feature Request] [Plowdown] min-rate #91

Closed gentano closed 7 years ago

gentano commented 7 years ago

Hi,

is it possible to add min-rate and configurable timeout for plowdown?

E. g. Download speed is slower/= X kb/s for longer then X seconds = disconnect from server and try X other times. Saw the min-rate feature on plowup and really wondered why it doesnt exist for plowdown :)

Background for request: Im having issues with Zippyshare: 4..5 files are downloading at full speed (100mbit) and then it drops to between several and 300kb/s. Closing the session (Im using PortableGIT under Windows 10) and restart the download will make it fast again. Im pretty sure its Zippyshare or Providers fault, but that feature would be cool anyway for any related problems like this example.

mcrapet commented 7 years ago

Hi gentano, Could you test it?

gentano commented 7 years ago

Hey Matthieu,

it works great - thank You very much! Could You add an option for timeout tho (its fixed value of 30sec for both min-rate and max-rate at the moment) or if You dont want to add an option where can I change the value, please?

Am 02.04.2017 um 16:05 schrieb Matthieu Crapet:

Hi gentano, Could you test it?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mcrapet/plowshare/issues/91#issuecomment-290988494, or mute the thread https://github.com/notifications/unsubscribe-auth/AZm_QlZUUAYZChyVEWtLHFjLw0W9-1KEks5rr6s5gaJpZM4MwzJT.

gentano commented 7 years ago

Is it this:

 if test -n "$MIN_LIMIT_RATE"; then
     OPTIONS+=(--speed-time 30 --speed-limit $MIN_LIMIT_RATE)

?

:-)

So could I just use the --speed-time option like the --min-rate option?

Am 02.04.2017 um 16:05 schrieb Matthieu Crapet:

Hi gentano, Could you test it?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mcrapet/plowshare/issues/91#issuecomment-290988494, or mute the thread https://github.com/notifications/unsubscribe-auth/AZm_QlZUUAYZChyVEWtLHFjLw0W9-1KEks5rr6s5gaJpZM4MwzJT.

mcrapet commented 7 years ago

--speed-time 30 is a curl switch, you could tweak the value here (core.sh) if you like.

gentano commented 7 years ago

Hey Matthieu,

is it possible to add a function, so it will automatically retry a download after it failed because of too slow speed, maybe even chooseable if retry at the end of the queue or just immediately?

Thanks,

gentano

Am 02.04.2017 um 16:05 schrieb Matthieu Crapet:

Hi gentano, Could you test it?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mcrapet/plowshare/issues/91#issuecomment-290988494, or mute the thread https://github.com/notifications/unsubscribe-auth/AZm_QlZUUAYZChyVEWtLHFjLw0W9-1KEks5rr6s5gaJpZM4MwzJT.