Dear ruTorrent Developers,
First of all, I would like to say thank you. The project is excellent. It is so convenient to use the GUI to control torrents.
I also would like to contribute to rutracker_check plug-in code. I did some improvements, which make this plug-in useful in periodically check mode and simultaneous check of many files.
There are some limitation in rutracker.org site, which should be taken into account:
1) Maximum number of torrents files you can download per day is 100.
2) “Antibot”. The site recognize robot and each time you make search etc, it ask to fill the form with number on image first.
So, I improve plugin to avoid such problems.
1) To check that the torrent is changed or not, I use hash_search condition before downloading torrent file in check.php. This solution helps to avoid problem 1.
2) To avoid “antibot” I'm taking randomly a few files in list to check in update.php. New option were added to conf.php file averageUpdateTime. The average time each torrent will be checked for update.
I've tested the plug-in for a few weeks with ~300 torrents from rutracker.org and it seems to work.
$updateInterval = 30;
$averageUpdateTime = 1440;
Some notes:
1) Each updateInterval the plugin checks approximately $updateInterval/$averageUpdateTime * <number_of_rutracker_torrents> torrents. In my case it is around 4 and it is OK for the tracker (problem 2).
2) The value $updateInterval can be even 1. In this case the average torrents updates per interval will be less than 1 and it is working fine. But I not suggest you to set such small values because of (maybe) computational resources and authorization issues. You will be automatically log out from the site after check.php execution. So, it not so nice to login to the tracker every few minutes.
3) Never do simultaneous check of all you files (problem 2). If you still got the problem, just wait. The “antibot” behavior is temporary. In a few ours (may be day) it should gone.
I will really appreciate if you will check the code, possibly test and include it in you project.
Best regards,
First of all, I would like to say thank you. The project is excellent. It is so convenient to use the GUI to control torrents.
I also would like to contribute to rutracker_check plug-in code. I did some improvements, which make this plug-in useful in periodically check mode and simultaneous check of many files.
There are some limitation in rutracker.org site, which should be taken into account:
1) Maximum number of torrents files you can download per day is 100.
2) “Antibot”. The site recognize robot and each time you make search etc, it ask to fill the form with number on image first.
So, I improve plugin to avoid such problems.
1) To check that the torrent is changed or not, I use hash_search condition before downloading torrent file in check.php. This solution helps to avoid problem 1.
2) To avoid “antibot” I'm taking randomly a few files in list to check in update.php. New option were added to conf.php file averageUpdateTime. The average time each torrent will be checked for update.
I've tested the plug-in for a few weeks with ~300 torrents from rutracker.org and it seems to work.
$updateInterval = 30;
$averageUpdateTime = 1440;
Some notes:
1) Each updateInterval the plugin checks approximately $updateInterval/$averageUpdateTime * <number_of_rutracker_torrents> torrents. In my case it is around 4 and it is OK for the tracker (problem 2).
2) The value $updateInterval can be even 1. In this case the average torrents updates per interval will be less than 1 and it is working fine. But I not suggest you to set such small values because of (maybe) computational resources and authorization issues. You will be automatically log out from the site after check.php execution. So, it not so nice to login to the tracker every few minutes.
3) Never do simultaneous check of all you files (problem 2). If you still got the problem, just wait. The “antibot” behavior is temporary. In a few ours (may be day) it should gone.
I will really appreciate if you will check the code, possibly test and include it in you project.
Best regards,