
TorrentMonitor and hello again
A year and a half ago, I already wrote here about my TorrentMonitor development . Someone may have already read and used for a long time, but someone may not even have heard, so I want to tell you about it again, especially since I did not sit idle for a year and a half. This is an automatic tracking system for torrent trackers that automates the process of downloading torrent files.

The most important thing for such a system is to expand the number of supported trackers, not for the sake of quality, of course. During this time, the number of supported trackers doubled. In fact, screwing up support for the next tracker is a matter of several hours, unless it uses some completely abstruse engine or is not too convenient for parsing (this mainly refers to naming distribution topics, for example, adding animereactor.ru was not possible, in view of lack of a standard for naming distributions). Now the list of supported trackers is as follows:
Trackers among themselves are divided into 2 types:
- Forum - those that have updated distributions
- Single - those on which new series are laid out one at a time
Here I will talk a little more about how this works, because this is a common question. Many add to monitoring the series on lostfilm.tv and expect that something should happen immediately, but it is not. The monitor will react to this series only when it appears in the RSS feed, but if you add a theme from rutracker.org, the torrrent file will be downloaded immediately after the first start of the system, and the next time, only when the torrrent file is reloaded on the tracker .
Formal trackers also have the ability to track releases.

This is also in my opinion convenient and useful when there is a release on the tracker that puts music in your favorite style, for example.
The second main innovation was, finally, support for torrent clients, which allows you to transfer a torrent file directly to the client, which downloads it, and at the same time can delete the previous distribution from the client (it does not matter what type of distribution, “formal” or “single” ) "Friends" TM with Transmission and Deluge, as these are the most popular clients among my users and they were asked to "fasten". This has become perhaps the largest expansion of functionality during this time. But, unfortunately, there are limitations - this only works on * nix, because work is built through the console of these clients.

Also, due to the blocking of some trackers by home providers, they very much asked to make it possible to work through a proxy, which was also implemented and now the system can be wrapped in tor (you will have to install and configure it, of course, separately). And the class that works with the database has become universal and supports: MySQL, SQLite, PostgreSQL.
Surprisingly, TM has become quite popular, I see that it is screwed not only to machines with Windows / Linux / Mac OS on which it naturally works normally, but also to various "boxed" Linux-based devices: zyxel keenetic , various NAS`ah, as well as on nas4free.
I hope this post and my little development will seem useful to someone and even if only one person after reading it starts to use it, it will be enough for me.
In general, it is extremely interesting for me to develop the project further, it will be extremely interesting for me to work with programmers to improve the system or add new functionality to it, add new torrent trackers for work, and learn something else for myself. That's why I invite everyone to github .
Well and most importantly, the link to the latest version 0.9.2, but how to deploy and check the system is described in the readme file in the archive.
System requirements:
PHP 5.3 and above, must be compiled with support for cURL and PDO.
Also, in php.ini (for the CLI), you need to change the following parameters:
max_execution_time = 300
allow_url_fopen = on (it is desirable to enable this option in php.ini for both the CLI and the web server)
expose date.timezone Expand
:
And a couple of words for the paranoid: Passwords from your accounts are stored in your database, nothing is sent to me. For your own peace of mind, you can close any activity on my domain, except for the korphome.ru/torrent_monitor/version.xml file, it is needed to check for updates (but although if it’s paranoid at all, you can also not check for updates).
I will be happy to hear your thoughts on the topic of further development of the project and interesting functionality.

The most important thing for such a system is to expand the number of supported trackers, not for the sake of quality, of course. During this time, the number of supported trackers doubled. In fact, screwing up support for the next tracker is a matter of several hours, unless it uses some completely abstruse engine or is not too convenient for parsing (this mainly refers to naming distribution topics, for example, adding animereactor.ru was not possible, in view of lack of a standard for naming distributions). Now the list of supported trackers is as follows:
- anidub.com
- baibako.tv
- casstudio.tv
- kinozal.tv
- lostfilm.tv
- newstudio.tv
- nnm-club.me
- novafilm.tv
- rutor.org
- rutracker.org
- tfile.me
Trackers among themselves are divided into 2 types:
- Forum - those that have updated distributions
- Single - those on which new series are laid out one at a time
Here I will talk a little more about how this works, because this is a common question. Many add to monitoring the series on lostfilm.tv and expect that something should happen immediately, but it is not. The monitor will react to this series only when it appears in the RSS feed, but if you add a theme from rutracker.org, the torrrent file will be downloaded immediately after the first start of the system, and the next time, only when the torrrent file is reloaded on the tracker .
Formal trackers also have the ability to track releases.

This is also in my opinion convenient and useful when there is a release on the tracker that puts music in your favorite style, for example.
The second main innovation was, finally, support for torrent clients, which allows you to transfer a torrent file directly to the client, which downloads it, and at the same time can delete the previous distribution from the client (it does not matter what type of distribution, “formal” or “single” ) "Friends" TM with Transmission and Deluge, as these are the most popular clients among my users and they were asked to "fasten". This has become perhaps the largest expansion of functionality during this time. But, unfortunately, there are limitations - this only works on * nix, because work is built through the console of these clients.

Also, due to the blocking of some trackers by home providers, they very much asked to make it possible to work through a proxy, which was also implemented and now the system can be wrapped in tor (you will have to install and configure it, of course, separately). And the class that works with the database has become universal and supports: MySQL, SQLite, PostgreSQL.
Surprisingly, TM has become quite popular, I see that it is screwed not only to machines with Windows / Linux / Mac OS on which it naturally works normally, but also to various "boxed" Linux-based devices: zyxel keenetic , various NAS`ah, as well as on nas4free.
I hope this post and my little development will seem useful to someone and even if only one person after reading it starts to use it, it will be enough for me.
In general, it is extremely interesting for me to develop the project further, it will be extremely interesting for me to work with programmers to improve the system or add new functionality to it, add new torrent trackers for work, and learn something else for myself. That's why I invite everyone to github .
Well and most importantly, the link to the latest version 0.9.2, but how to deploy and check the system is described in the readme file in the archive.
And then I’ll hide the remaining screenshots :)





System requirements:
PHP 5.3 and above, must be compiled with support for cURL and PDO.
Also, in php.ini (for the CLI), you need to change the following parameters:
max_execution_time = 300
allow_url_fopen = on (it is desirable to enable this option in php.ini for both the CLI and the web server)
expose date.timezone Expand
:
- download archive
- we import the database dump from the db_schema directory depending on the database used - * .sql
- we transfer all the files to a folder on your server (for example / var / www / htdocs / torrentmonitor /)
- edit config.php and specify data to access the database
- go to the web interface (the default password is torrentmonitor, change (!) it after the first login).
- specify credentials from trackers
- specify the path to save torrents in the settings (the folder that is monitored by your torrent client), e-mail and enable / disable sending notifications
- add torrents for monitoring
- go to the “test” tab and check whether everything works correctly
- add to cron engine.php
*/10 * * * * php -q /path/to/folder/torrent_monitor/engine.php
And a couple of words for the paranoid: Passwords from your accounts are stored in your database, nothing is sent to me. For your own peace of mind, you can close any activity on my domain, except for the korphome.ru/torrent_monitor/version.xml file, it is needed to check for updates (but although if it’s paranoid at all, you can also not check for updates).
I will be happy to hear your thoughts on the topic of further development of the project and interesting functionality.