Archived

This topic is now archived and is closed to further replies.

Directrix

WebUI v0.361 ready for testing

Recommended Posts

well for me it looks after further observation that it just doesn't show days left... because hours and minutes are the same in both cases...

Share this post


Link to post
Share on other sites

Well yeah... I checked it twice and always hours & minutes match... Only days are not shown... I couldn't find the line which is responsible for displaying the date to check it though...

Share this post


Link to post
Share on other sites

Glad that I could help.

btw. you could've just cap your download speed 1KB/s or so to see days in ETA :) you didn't have to search for slow torrent :)

Share this post


Link to post
Share on other sites

Better yet, pausing a torrent is enough to cause its ETA to rocket after a little bit :P

Edit: And I see where the bug lies in the code... It's in utils.js, the "toTimeString" function.

if ((y > 0) && (w >= 0)) {

output = lang[CONST.TIME_YEARS_WEEKS].replace(/%d/, y).replace(/%d/, w);

} else if ((w > 0) && (d >= 0)) {

output = lang[CONST.TIME_WEEKS_DAYS].replace(/%d/, w).replace(/%d/, d);

} else if ((d > 0) && (h >= 0)) {

output = lang[CONST.TIME_DAYS_HOURS].replace(/%d/, d).replace(/%d/, h);

} else if ((h > 0) && (m >= 0)) {

output = lang[CONST.TIME_HOURS_MINS].replace(/%d/, h).replace(/%d/, m);

} else if (m > 0) {

output = lang[CONST.TIME_MINS_SECS].replace(/%d/, m).replace(/%d/, s);

} else

output = lang[CONST.TIME_SECS].replace(/%d/, s);

The snippet in red needs to be added. Because the distributed version of WebUI is compacted, the variables won't have their full names (output is actually B, d is actually F, and h is actually D). Opening/closing braces for the if/else blocks as well as whitespaces are not preserved when compacted either. Pay attention to that! (I'm too lazy to translate the above snippet into compacted code)

Share this post


Link to post
Share on other sites

I will look at it tomorrow maybe i will find the way to fix it...

EDIT: didnt noticed your edit :) thanks for fix!

EDIT 2:

replace:

if((G>0)&&(H>=0)){B=lang[CONST.TIME_YEARS_WEEKS].replace(/%d/,G).replace(/%d/,H)}else{if((H>0)&&(F>=0)){B=lang[CONST.TIME_WEEKS_DAYS].replace(/%d/,H).replace(/%d/,F)}else{if((D>0)&&(C>=0)){B=lang[CONST.TIME_HOURS_MINS].replace(/%d/,D).replace(/%d/,C)}else{if(C>0){B=lang[CONST.TIME_MINS_SECS].replace(/%d/,C).replace(/%d/,I)}else{B=lang[CONST.TIME_SECS].replace(/%d/,I)}}}}return B}

with

if((G>0)&&(H>=0)){B=lang[CONST.TIME_YEARS_WEEKS].replace(/%d/,G).replace(/%d/,H)}else{if((H>0)&&(F>=0)){B=lang[CONST.TIME_WEEKS_DAYS].replace(/%d/,H).replace(/%d/,F)}else{if((F>0)&&(D>=0)){B=lang[CONST.TIME_DAYS_HOURS].replace(/%d/,F).replace(/%d/,D)}else{if((D>0)&&(C>=0)){B=lang[CONST.TIME_HOURS_MINS].replace(/%d/,D).replace(/%d/,C)}else{if(C>0){B=lang[CONST.TIME_MINS_SECS].replace(/%d/,C).replace(/%d/,I)}else{B=lang[CONST.TIME_SECS].replace(/%d/,I)}}}}}return B}

in utils.js

EDIT3: I got rid of one unneeded char...

Share this post


Link to post
Share on other sites

hi everbody, im new here and i got a big problem.

i hope someone can help me out.

at the beginning the webui worked. but then i did a change in the options. when i klicked "show speed in status bar" and pushed ok, then came the error message. invalid request....

what can i do ?!?! heeellppp

*EDIT* i use utorrent 1.6.1 and downloaded the webui from here.

the protokoll says allways, when i try to connect. " (date) HTTP:myip BLOCKED : GET /gui/

Share this post


Link to post
Share on other sites

I have a big problem with the v0.361 of webui. I get this...

webui_fail.JPG

I run this on 2k3 server with uT 1.8.1.

The strange thing is that it works just fine from a mobile connection on my laptop.

Its from work it wont work. I used v0.316 and 310 before and they both work from here.

Im on a corporate network with proxy, but that should have no effect should it??

So what have changed from 316 to 361 that makes this one not to function properly?

Share this post


Link to post
Share on other sites

Tried now on a just formatted laptop with mobile broadband. Works like a charm. Still no go on corporate network.

This laptop uses Firefox 3.0.1. Just installed so no cache there.

Edit: Also uninstalled and reinstalled on corp network. Still not working

Share this post


Link to post
Share on other sites

Chances are, your corporate network blocks either gzipped content, or JavaScript files. Try the legacy version in the first post.

Share this post


Link to post
Share on other sites

Hi, is there a way to display when a torrent was added in the webui? It's there in the normal application, just not in webui. The column is missing...

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.