How to validate Torrent-Files?

1

I am interested in finding out if there is a tool, online application or method of checking for invalid .torrent files and fixing them? I'm specifically interested in tools that validate the .torrent file against the BitTorrent specification.

MagicAndi

Posted 2011-03-27T13:43:46.517

Reputation: 141

Question was closed 2011-03-27T20:49:40.100

1@MagicAndi do you mean the .torrent file itself or the eventual file that you download from the .torrent file? – Kez – 2011-03-27T14:58:38.557

The problem is any changes to the torrent will change the hash, which then the tracker will not see any other torrents by that hash. – Unfundednut – 2011-03-27T15:03:45.020

1Define "invalid" – Moab – 2011-03-27T15:42:18.410

@Kez, the actual .torrent file, as opposed to the downloaded file. I'm interested in tools that can check the validity of the .torrent file against the specification - http://en.wikipedia.org/wiki/Torrent_file. I will update the question accordingly.

– MagicAndi – 2011-03-27T17:45:59.990

@Moab, "invalid" as not meeting the BitTorrent specification. I have updated the question accordingly. – MagicAndi – 2011-03-27T17:49:14.993

@MrStatic, possibly this means that if you do detect an invalid torrent, if you attempt to repair it, you willactually need to create a new .torrent file using the URLs in the original file, and to generate a new MD5 for the new .torrent file? – MagicAndi – 2011-03-27T17:54:34.023

1As far as I know you cannot repair a torrent file without recreating it by having a complete copy of the original file being shared. – Moab – 2011-03-28T14:20:56.760

Answers

2

If the problem with the client is not knowing how to deal with non-English characters; then nothing is wrong with the torrent.

The torrent is validated via the MD5 checksum relevant to the torrent. There are varying tools that exist to validate the MD5 checksum external to the torrent client which should meet your needs; provided you know the checksum of course.

Aaron McIver

Posted 2011-03-27T13:43:46.517

Reputation: 1 405

My impression is that hash checking is built into the bittorrent protocol, and there is really no need to double check it, invalid pieces are discarded. I've never gotten an invalid file via torrent. OP What problems do the non-english characters cause? – CreeDorofl – 2011-03-27T15:10:59.647

@CreeDoroft, the non-English characters cause the Transmission client to reject the .torrent file as invalid. I'm not too worried about this - it is a known issue with the client. It just led me to ask if there were more generic tools available to check and fix invalid .torrent files. – MagicAndi – 2011-03-27T17:52:05.617