Recently I
described the jBitTorrent for Java
library , with which you can work with files using the BitTorrent protocol.
In the same article there was a block describing the problems encountered when using this library, because it has not been updated since 2009.
The user
sadyjka suggested that I fix these bugs myself, and so I found some time for this. The following issues have been fixed:
- The disadvantage of adding multiple files to the generated torrent file
- Error uploading files
In the first case, I implemented the addition of a folder to generate a torrent file, in the second case, I simply removed the call to the method that generated the exception. As far as I understood his logic from the code, it is not really needed (processing of the peer rating).
More complete descriptions of these errors can be found in the article at the link above.
')
I admit honestly, I had to deal with this code for several days, so I could do a little bit of code.
I did not remove the problem in
printData
, because the method is also not critical, but after looking at the source code, I saw that there was access to the list elements that were not used in that class.
I apologize that my fixes are not at SourceForge, for the author has been very busy.
SourcesJarUPDAt the request of
debacle made a
repository on github .