mpetazzoni / ttorrent

BitTorrent Java library with tracker and download client
http://mpetazzoni.github.com/ttorrent/
Apache License 2.0
1.38k stars 502 forks source link

Torrent scraping fixed + depds update + torrent from uri #154

Closed pisek closed 8 years ago

pisek commented 8 years ago

Scraping of tracker did not work as expected. The String which was used as KEY to a map is infohash. This String was created with UTF-8 encoding which was wrong. Only actual text string should be encoded and decoded from and to UTF-8. Data should be encoded in some default encoding like ISO-8859-1. More about this here.

Version of selected libs was updated

Added test for BDecode, fixed FileCollectionStorageTest and added Util class with common static methods.