transdroid
transdroid copied to clipboard
Transdrone+ktorrent does not supports thousands separator in numbers
Transdrone cannot get ktorrent list of torrents, if any of them has thousands separator in their statistics. Following error occurs:
Error: java.lang.NumberFormatException: Invalid float: "1 022.84"
ConnectionError exception: java.lang.NumberFormatException: Invalid
This goes all the way back to https://code.google.com/p/transdroid/issues/detail?id=201 I do not have a test setup with KTorrent at the moment but should try to get one and test the latest KTorrent version.
Im using english version of ktorrent. The problem lies in space within numbers. Sample tag from torrents.xml, which leads to this error:
<torrent>
<name>Some Torrent Name</name>
<info_hash>0000000000000000000000000000000000000000</info_hash>
<status>Seeding completed</status>
<bytes_downloaded>1 009,40 MiB</bytes_downloaded>
<bytes_uploaded>1 009,95 MiB</bytes_uploaded>
<total_bytes>1 009,40 MiB</total_bytes>
<total_bytes_to_download>1 009,40 MiB</total_bytes_to_download>
<download_rate>0 B/s</download_rate>
<upload_rate>0 B/s</upload_rate>
<num_peers>0</num_peers>
<seeders>0</seeders>
<seeders_total>0</seeders_total>
<leechers>0</leechers>
<leechers_total>0</leechers_total>
<running>0</running>
<percentage>100.00</percentage>
<num_files>6</num_files>
</torrent>
For instance this error occurs if there is a torrent with size between 1000 Mb and 1 Gb.
I can provide access to live ktorrent setup, where are such issue occurs.