anacrolix / anacrolix/torrent

Ignore malformed (optional) fields in metainfo.Load

オープン
#910 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る
主要言語
Go
スター
6.1k
フォーク
690
平均マージ
3日 10時間
マージ済み PR(30日)
12

説明

Some torrents sites could generate malformed torrent file. I personally encountered that the private tracker site [aidoru-online](https://aidoru-online.me/) 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.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。