Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore malformed (optional) fields in metainfo.Load #910

Open
sagan opened this issue Mar 4, 2024 · 0 comments
Open

Ignore malformed (optional) fields in metainfo.Load #910

sagan opened this issue Mar 4, 2024 · 0 comments

Comments

@sagan
Copy link

sagan commented Mar 4, 2024

Some torrents sites could generate malformed torrent file. I personally encountered that the private tracker site aidoru-online generates torrents with malformed "announce-list" fields: it incorrectly uses the comma-seperated trackers joined string instead of using the Bencode list structure.

Bittorrent clients such as qBittorrent silently ignore such malformed announce-list whening adding those torrents, and fallback to use "announce" field as tracker.

Currently, metainfo.Load return err if failed to parse any field. It will be helpful that it is be able to ignore parsing error of some optional / non-fatal fields, and still return the parsed result of other fields in such case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant