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

Missing properties: "source" #24

Closed kaypoush closed 1 year ago

kaypoush commented 1 year ago

Some properties for example source seems to be missing. source is useful for cross seeding and for some trackers it's a requirement.

idlesign commented 1 year ago

And what do you mean by source exactly? Any spec for that maybe?

kaypoush commented 1 year ago

It's a string key in info dictionary. I don't think there is any spec. I think it's a custom key but widely used. Most torrent clients have it as an option during the torrent creation process. It's basically a field where you enter the name of the torrent site or its acronym. For some private trackers it's a requirement. It can also be used to differentiate torrent files for cross seeding. Here is some additional explaining.

This is how it looks:

Capture d’écran 2023-02-27 à 23 16 24

mktorrent describes it like this:

Option for source string added to torrent info (-s), included in infohash. Often used by private trackers to create a unique infohash to prevent peer-leak and the possibility to track the trackers that do use leaked torrents. Having this option in mktorrent make it possible to create a infohash accurate torrent to the tracker you want to upload it to

idlesign commented 1 year ago

It indeed looks similar to comment entry, which is mainly used just for torrent URIs on private trackers. Yet we support this property as well.

Pull request is welcome.

idlesign commented 1 year ago

Considered closed by #27