Download, Upload Status page in the titlebar and more.

lisas4567

Member
May 25, 2018
773
0
16
1. Something similar to this.
Code:
D: 0.00K U: 0.00K - ruTorrent v3.4captureybv.png
and the ability to include this in the options.

2. The column status (seeding, downloading, checked) connected to the column done (%)
 

Attachments

lisas4567

Member
May 25, 2018
773
0
16
I added something like that to webui.js
updateStatus: function()
{
var self = theWebUI;
var speedDL = theConverter.speed(self.total.speedDL);
var speedUL = theConverter.speed(self.total.speedUL);

$("#stup_speed").text(theConverter.speed(self.total.speedUL));
$("#stup_limit").text((self.total.rateUL>0 && self.total.rateUL<100*1024*1024) ? theConverter.speed(self.total.rateUL) : theUILang.no);
$("#stup_total").text(theConverter.bytes(self.total.UL));
$("#stdown_speed").text(theConverter.speed(self.total.speedDL));
$("#stdown_limit").text((self.total.rateDL>0 && self.total.rateDL<100*1024*1024) ? theConverter.speed(self.total.rateDL) : theUILang.no);
$("#stdown_total").text(theConverter.bytes(self.total.DL));

document.title = 'D: ' + speedDL + ' U: '+ speedUL + ' - ruTorrent v' + self.version;
},

Please, Let somebody write this plug-in!
 

peshua19

Member
May 25, 2018
897
0
16
Write it by self.

Your plugin must include 2 files - plugin.info and init.js. Take first file from any existing plugin (for example, from plugin 'rpc') and correct it. Second file must contain something like

Code:
plugin.updateStatus = theWebUI.updateStatus;
theWebUI.updateStatus = function()
{
.... // your code
plugin.updateStatus(); // call original function
}
 

lisas4567

Member
May 25, 2018
773
0
16
Give me a clue. I really do not know for what to take ...

my init.js looks like this.

Code:
plugin.updateStatus = theWebUI.updateStatus;
theWebUI.updateStatus = function()
{
var self = theWebUI;
var speedDL = theConverter.speed(self.total.speedDL);
var speedUL = theConverter.speed(self.total.speedUL);

document.title = 'D: ' + speedDL + ' U: '+ speedUL + ' - ruTorrent v' + self.version;
plugin.updateStatus();
}
But it does not work hihi
 

peshua19

Member
May 25, 2018
897
0
16
Try to dubug code and think. May be addition line
Code:
theWebUI.setStatusUpdate();
to the end of code will helps you?
 

shwetha17

Member
May 24, 2018
785
0
16
You have the full code in previous posts.

Simply write a new plugin with the following files:

1) plugin.info (You can copy it from plugin 'rpc' and change the details)
2) init.js

Code:
plugin.updateStatus = theWebUI.updateStatus;
theWebUI.updateStatus = function()
{
var self = theWebUI;
var speedDL = theConverter.speed(self.total.speedDL);
var speedUL = theConverter.speed(self.total.speedUL);

document.title = 'D: ' + speedDL + ' U: '+ speedUL + ' - ruTorrent v' + self.version;
plugin.updateStatus();
}
theWebUI.setStatusUpdate();
 

peshua19

Member
May 25, 2018
897
0
16
Thank you for you quick reply.

So how I can switch on/off this feature?

On my titlebar is just info about ruTorent version:

RuTorrent v3.6 (svn$re.....) etc


Thank you in advice



Edit: Yes.I found it in the rutorrent settings


IueNaXJ.png



Edit2

Where and how I can edit titlebar settings?
I would like to remove ruTorrent version info and left just up/down speed info...

b89QxSN.png
 

Attachments