idlesign / torrentool

The tool to work with torrent files.
https://github.com/idlesign/torrentool
BSD 3-Clause "New" or "Revised" License
148 stars 30 forks source link

Some torrent files cannot be read correctly #30

Open vinhtq115 opened 8 months ago

vinhtq115 commented 8 months ago

In my repo, an user is having issue with some of his/her torrent files (link to original issue). I have filtered out files that are causing errors and uploaded them here. These torrent files can be read just fine in qBittorrent (macOS).

The majority of the files throw exceptions when using Torrent.from_file with the exception of file 3.torrent.

` char.ool.exceptions.BencodeDecodingError: Unable to interpret `: file 1, 2, 5 torrentool.exceptions.BencodeDecodingError: Unable to interpret `:` char.: file 4, 6 torrentool.exceptions.BencodeDecodingError: Unable to interpret `` char.: file 7

For file 3.torrent, Torrent.from_file works fine but when I try to read the name property, it throws this error: AttributeError: 'list' object has no attribute 'get'.

idlesign commented 8 months ago

Thank you for the report. I'll try to look further into to the issue the next week.

Though this may be connected with encoding issues, see https://github.com/idlesign/torrentool/issues?q=is%3Aissue+encoding

idlesign commented 8 months ago

I have filtered out files that are causing errors and uploaded them here.

It seems I'm too late: The transfer you requested has been deleted.

I've tried 2.rar from https://github.com/vinhtq115/rename-torrent-from-hash/issues/3#issuecomment-766251541

Yet was unable to extract files: unrar

vinhtq115 commented 8 months ago

I have filtered out files that are causing errors and uploaded them here.

It seems I'm too late: The transfer you requested has been deleted.

I've tried 2.rar from vinhtq115/rename-torrent-from-hash#3 (comment)

Yet was unable to extract files: unrar

Here is the new link. Unfortunately, I don't remember how I numbered these files few weeks ago so their names are hashes.

idlesign commented 8 months ago

This comment seems to be relevant https://github.com/idlesign/torrentool/issues/2#issuecomment-166059474 for example encoding GBK is used in 01eee2dfdb657303c6149ea27feee703b4936957.torrent.