anacrolix / torrent

Full-featured BitTorrent client package and utilities
Mozilla Public License 2.0
5.51k stars 622 forks source link

Error loading torrent file #831

Closed RfadnjdExt closed 1 year ago

RfadnjdExt commented 1 year ago

Encountered an error when trying to add a torrent file to the downloader. The error message is:

error running main: adding torrents: adding torrent for "file.torrent": error loading torrent file "file.torrent": bencode: syntax error (offset: 417): strconv.ParseInt: parsing "17536620544e4": invalid syntax

This error occurred when trying to load the torrent file. It seems to be related to a syntax error in the file. Thank you.

anacrolix commented 1 year ago

Could you attach the torrent file, or send it to me privately if you prefer?

RfadnjdExt commented 1 year ago

Hi, I realized that I forgot to attach the actual torrent file to the issue, which may have made it difficult for you to reproduce the error.

file.zip

I apologize for the oversight. I'm still trying to figure out what might be causing the issue, but I'll keep you posted on any progress I make.

Thanks for your patience and understanding! Best.

anacrolix commented 1 year ago

I don't know how someone has managed to produce an info like this, but if you look in the file, and change 7:lengthi17536620544e4 to 6:lengthi17536620544e4, it will be fixed. anacrolix/torrent is showing the correct behaviour as far as I can tell.

RfadnjdExt commented 1 year ago

You right, length is 6 length but they produce it with 7 XD. Thank you for your repsonse.