expert01 Posted July 7, 2007 Report Share Posted July 7, 2007 I can't find info on implementing the "warning message" flag into my tracker.I've got this:d15:warning message14:This is a tested8:intervali1800e5:peersleefor my response right now, using utorrent build 2999. It says "tracker reply has no peers field".Anyone have a sample response with the warning message? Link to comment Share on other sites More sharing options...
Ultima Posted July 7, 2007 Report Share Posted July 7, 2007 http://wiki.theory.org/BitTorrentSpecification#Tracker_ResponseThe peers field needs to be a dictionary, no? So shouldn't it be something liked15:warning message14:This is a tested8:intervali1800e5:peersdee? Link to comment Share on other sites More sharing options...
expert01 Posted July 7, 2007 Author Report Share Posted July 7, 2007 It's a list of dictionaries. From what I understand, "d" is already defined at the beginning of the response, and can not be defined again. I attempted to add the warning message inside (after peers but before the closing e), and it worked fine, but didn't display the warning message. Link to comment Share on other sites More sharing options...
Ultima Posted July 7, 2007 Report Share Posted July 7, 2007 Er, whoops! list of dictionaries... That's correct... It wouldn't make sense if the peers list were a dictionary xDThere's nothing wrong with having a nested dictionary either, but it's irrelevant for this problem. Can you try putting the warning message at the end? Dictionaries key/value pairs are *supposed* to be sorted in key alphabetical order (though I seriously doubt it's the problem -- still worth a try).Edit: Oh, wait, I see the reason. The tracker response is supposed to be one entire dictionary:d8:intervali1800e5:peersle15:warning message14:This is a testewarning message is a key in the tracker response dictionary, not a key in a separate dictionary. Link to comment Share on other sites More sharing options...
expert01 Posted July 7, 2007 Author Report Share Posted July 7, 2007 Excellent! Works just fine.Wish that wiki had some real examples instead of just telling you how it's supposed to be. Hopefully this topic will help some people out. Link to comment Share on other sites More sharing options...
Ultima Posted July 7, 2007 Report Share Posted July 7, 2007 It can be freely edited -- you just need to sign up for an account there. Regardless, just a bit more careful reading of provided documentation is the least people can do (myself included xD). The wiki does outline it very clearly, after all Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.