[Release] uTorrentPSM |
Author: |
Message: |
ddunk
Veteran Member
Posts: 1228 Reputation: 51
35 / /
Joined: Mar 2004
|
RE: [Release] uTorrentPSM
quote: Originally posted by SonicSam
quote: Originally posted by Felu
@vikke: How about something which doesn't read the title bar and really gets the information from µTorrent
ddunk tried this before, incredible lag if I recall.
Around 20 seconds to decode a resume.dat with 20 or so torrents in it. If someone can figure out a decent method, it'd be a great script, but have fun trying to do so.
|
|
03-17-2007 02:51 AM |
|
|
WDZ
Former Admin
Posts: 7106 Reputation: 107
– / /
Joined: Mar 2002
|
RE: [Release] uTorrentPSM
Hmm... I just decoded a resume.dat with 87 torrents in 0.1572 seconds using PHP.
It doesn't contain any upload/download speeds though (as far as I can tell).
Maybe you could use the uTorrent WebUI as a sort of API? Is that included in 1.6.1 Stable or only the beta?
|
|
03-17-2007 03:47 AM |
|
|
-dt-
Scripting Contest Winner
;o
Posts: 1819 Reputation: 74
36 / /
Joined: Mar 2004
|
|
03-17-2007 04:09 AM |
|
|
ddunk
Veteran Member
Posts: 1228 Reputation: 51
35 / /
Joined: Mar 2004
|
RE: [Release] uTorrentPSM
quote: Originally posted by WDZ
Hmm... I just decoded a resume.dat with 87 torrents in 0.1572 seconds using PHP.
It doesn't contain any upload/download speeds though (as far as I can tell).
Maybe you could use the uTorrent WebUI as a sort of API? Is that included in 1.6.1 Stable or only the beta?
I tried that too and gave up, packet sniffing didn't work because the data is sent encoded and the javascript used is completely obfuscated.
The Javascript decoding functions we played with were taken from the attached file, via the Samurize script that was put out for utorrent.
Attachment: uTorrentMonitor.txt (30.46 KB)
This file has been downloaded 321 time(s).
|
|
03-17-2007 04:26 AM |
|
|
WDZ
Former Admin
Posts: 7106 Reputation: 107
– / /
Joined: Mar 2002
|
RE: [Release] uTorrentPSM
Hacked the code a bit, threw some debug timers in there, then executed it with WSH...
---------------------------
Windows Script Host
---------------------------
File loading time: 0 ms, Unicode time: 31672 ms, BDecode time: 312 ms, Total time: 32063 ms
The actual BDecoding seems quite efficient, the bottleneck is this dodgy Unicode conversion code...
code: // Split the 2 bytes for each Unicode char and add them to an array. Convert both bytes from a charcode to a character.
var UInt8Array = [],charCode;
while(unicodeString.length){
charCode = unicodeString.charCodeAt(0);
UInt8Array.push(String.fromCharCode(charCode&255),String.fromCharCode(charCode>>8));
unicodeString = unicodeString.substr(1);
}
Here's a forum post where the author asks for help with that: http://www.ozoneasylum.com/27909
|
|
03-17-2007 05:49 AM |
|
|
vikke
Senior Member
Posts: 900 Reputation: 28
31 / /
Joined: May 2006
|
O.P. RE: [Release] uTorrentPSM
I could use pure Win32 APIs to get the information right from the uTorrent window. However, that is also limited, but I can get some more information.
I think 2 seconds is ok, because you will see the changes all the time, but not your contact, she/he will only see them like once in 10 seconds. If I would have 10 seconds timers, there would be too much change between each time.
I'm working on something, but it's not decrypting resume.dat as that would be too slow..
vaccination, what about multiple downloads at same time then?
WDZ: I'll check into WebUI.
Thanks for your feedback.
This post was edited on 03-17-2007 at 06:37 AM by vikke.
|
|
03-17-2007 06:37 AM |
|
|
vaccination
Veteran Member
Posts: 2513 Reputation: 43
32 / / –
Joined: Apr 2005
|
RE: [Release] uTorrentPSM
quote: Originally posted by vikke
vaccination, what about multiple downloads at same time then?
hmm, maybe just display torrent #1 in the list?
|
|
03-17-2007 08:30 AM |
|
|
Silentdragon
Full Member
if(life==null && wrists) EmoAlert();
Posts: 148 Reputation: 2
34 / / –
Joined: Jun 2006
|
RE: [Release] uTorrentPSM
code: var wString = Interop.Allocate((unicodeString.length*2));
var mbString = Interop.Allocate((unicodeString.length));
mbString.WriteString(0,unicodeString);
Interop.Call("Kernel32","MultiByteToWideChar", 65001, 0x8, mbString, unicodeString.length, wString, wString.Size);
That'll do your conversions for you, however wString.ReadString(0) doesn't read it all, stopping at null characters. I dunno if they are supposed to be there or not, the strings I get back look exactly like what the makeshift conversion gives me. Don't have time to mess around more, so see what you guys can do with it.
This post was edited on 03-17-2007 at 08:33 AM by Silentdragon.
|
|
03-17-2007 08:32 AM |
|
|
vikke
Senior Member
Posts: 900 Reputation: 28
31 / /
Joined: May 2006
|
O.P. RE: [Release] uTorrentPSM
Update: 1.1
Changelog:
* Interface (Setting window)
* You can now change update speed
* You can now format your PSM your own way, with %D and %U as tags.
Download: Check main post.
|
|
03-17-2007 09:46 AM |
|
|
prashker
Veteran Member
Posts: 5109 Reputation: 104
– / / –
Joined: Mar 2005
Status: Away
|
RE: [Release] uTorrentPSM
You forgot the description.
|
|
03-17-2007 03:30 PM |
|
|
Pages: (4):
« First
«
1
[ 2 ]
3
4
»
Last »
|
|