Created attachment 215731 [details]
Allow for missing "announce" field
I propose to add two patches to net-p2p/ctorrent port in order to improve handling of some *.torrent files:
1) lots of new torrent files, created in the trackerless (DHT) era, do not have "announce" field populated, and ctorrent refuses to work with such files. While ctorrent does not support DHT-only downloads, it's often used to display *.torrent file contents, e.g. Midnight Commander uses it by default. I'm attaching the patch which would skip missing "announce" field, but still process "announce-list" if available.
2) you might also consider adding another patch[*] from Gentoo Linux: rTorrent sometimes creates invalid torrents which has empty path components. The bitorrent spec allows for "" strings, but they make no sense in paths, so instead of always adding a / in between, skip them.
in testing with other changes.
A commit references this bug:
Date: Thu Jun 25 11:33:35 UTC 2020
New revision: 540385
- fix empty announce list
- fix empty path
Submitted by: Alexey Dokuchaev
Obtained from: Gentoo
- fix mutiple peers behind same IP
Obtained from: Timothy Palpant