openscopeproject / TrguiNG

Remote GUI for Transmission torrent daemon
GNU Affero General Public License v3.0
265 stars 32 forks source link

Unable to load torrent file - Failed to parse torrent "malformed bencode: Integer delimiter not found." #169

Closed FrAcTi0N closed 2 months ago

FrAcTi0N commented 4 months ago

Unable to load some torrent files, showing: Error reading torrent Failed to parse torrent

bellow is a log from CMD

./TrguiNG 
2024-02-21 22:49:20.434 TrguiNG[28907:7030376] WARNING: Secure coding is not enabled for restorable state! Enable secure coding by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState: and returning YES.
Got response: TrguiNG OK
Got response: TrguiNG OK
Failed to parse torrent "malformed bencode: Integer delimiter not found."
qu1ck commented 4 months ago

I can't fix it if you don't provide an example of such torrent

FrAcTi0N commented 4 months ago

Sorry, i am unable to add it as an attachment, so i will paste the content here, is this enough?

`

qu1ck commented 4 months ago

You can't post binary data into a comment and expect it to not be all kinds of broken :D

Upload the file on some file share site, like dropbox or https://filetransfer.io/

FrAcTi0N commented 4 months ago

i thought that, sorry, here is the link. https://filetransfer.io/data-package/T2epff0w#link

qu1ck commented 4 months ago

That torrent file has a random "eol" character at the end of it which makes it technically malformed. I pushed a fix though so next version will not trip up on it.

In the meantime you can add such files through the web interface.

FrAcTi0N commented 4 months ago

TY, will let you know after the new release if it get fixed.

FrAcTi0N commented 4 months ago

I just compiled current GitHub version and I can confirm it's working. TY.

qu1ck commented 2 months ago

Fixed in v1.3.0