Invalid Torrent Created With transmission-cli
I’m posting this mainly because I had a really hard time finding the solution. Hopefully someone in the same boat can find this solution helpful.
I usually use uTorrent to create torrents, however since I switched to my sheevaplug and installed transmission I’ve had to learn how to manage my torrents with a very limited cli. I did learn how to create a torrent:
$ transmissioncli -n <file to be shared> -a <URL of torrent announcement> <torrent file filename>
The problem I ran into after creating the torrent and uploading it to my private tracker of choice (demonoid) and then downloading the posted torrent file, it would try to download the files. It would not see them as already existing in my torrent directory. I did some sleuthing and found that the first character of any file or folder in the directory of my torrent was cut off. For example, if in my transmission cli command I put
$ transmissioncli -n Ignotus/ -a <URL of torrent announcement> <torrent file filename>
it would successfully create a torrent for the directory Ignotus. However any of the files in that folder would be listed without the first character. So, if the files were tracks from the Ignotus album with leading zeros (01, 02, 03 etc) they would instead be (1, 2, 3). This made the torrent client not recognize that the files were already downloaded.
I sleuthed on the transmission irc channel (#transmission) and someone pointed me to the following bug. So, to solve this issue either download the latest nightly or simply do not use the trailing slash when specifying a directory. This might get hairy if you have files the same name as your directories but that probably won’t be a problem.
Update 7/28/2009: Looks like this is fixed in 1.73.
I wish I knew what all that Greek means, but I sure do think you're awesome because YOU know it!
Hah thanks :) I need to write some less nerdy stuff. I have a lot of things I want to write about...