[BOUNTY] Record webuser in history plugin

peshua19

Member
May 25, 2018
897
0
16
Hello

I would like to know if it's possible to store webuser in history plugin ?

My usage :
I have only one instance of rtorrent with unix user rtor. I have set up a few webuser with nginx wich connect to rtorrent with socket et unix user rtor. So everyone see all torrent downloaded by everybody. It's cool but if I want to know who add a specific torrent, I can't... That's why I ask this improvement.

I can put $25 as bounty for this.

Thank you !
 

saroos1

Member
May 25, 2018
718
0
16
Possible. If you have one rtorrent instance per user.
In your case - is not possible. Torrent may be loaded in background mode, without presence of ruTorrent interface at all. Via RSS plugin, for example.
 

peshua19

Member
May 25, 2018
897
0
16
Thank's for your answer. Actually, I want to log only torrent added from "Add a torrent" and "Extsearch" functions. So webuser is recordable in this case, isn't it ?
 

saroos1

Member
May 25, 2018
718
0
16
Plugin 'history' use rtorrent callbacks for registering events. Name of webuser is not available inside these callbacks.
Function 'getUser' will return parameter from call of 'initplugins' in your rtorrent.rc.
I.e. this technique is applicable for situation 'one rtorrent instance per one user' only.