I manage to decode a torrent file successfully using python and have the component parts of the torrent file nicely laid out as a dictionary.
What I want to detect next is if 2 torrent files are for the same set of files, so if is the case, to just extract the trackers from the second one.
The only idea that comes to my mind now, is to make a hash of the pieces part of torrent and see if the hash is the same for the 2.
I’m new with the torrent protocol, programming wise, so be gentile :).
Any body has any idea ?
Sorry, I just found the answer in another question, please correct me if I’m wrong. If I make a hash of the whole info of the torrent, the hashes are the same: