Cant connect to most private trackers
Hi. first of all thanks for your great tool. imho its the best terminal client out there. but i got a serious problem: I cant dl from most private trackers. the torrent is starting ok, but shortly after BTqueue shouts FAILURE X the info is working, so i think btq aint passing my passkey correctly. it doesnt work if the announce url looks like this: http://torrents.org/announce.php?passkey=XXX but, it works on tl http://tracker.torrentleech.org:2710/a/XXX/announce hope, you fix it soon
- 9209 reads
oops!
Is this fixed already? I
should be fixed
Index: BitTorrent/Rerequester.py =================================================================== --- BitTorrent/Rerequester.py (revision 280) +++ BitTorrent/Rerequester.py (working copy) @@ -62,9 +62,18 @@ self.tracker_num_seeds = None def _makeurl(self, peerid, port): - return ('%s?info_hash=%s&peer_id=%s&port=%s&key=%s' % - (self.baseurl, quote(self.infohash), quote(peerid), str(port), + url = ('info_hash=%s&peer_id=%s&port=%s&key=%s' % + (quote(self.infohash), quote(peerid), str(port), b2a_hex(''.join([chr(randrange(256)) for i in xrange(4)])))) + try: + url += '&local_ip=%s' % quote(gethostbyname(gethostname())) + except: + pass + if self.baseurl.find('?') >= 0: + c = '&' + else: + c = '?' + return '%s%s%s' % (self.baseurl,c,url) def change_port(self, peerid, port): self.wanted_peerid = peerid
Similar problem
contact me
fixed it, sorta
Post new comment