Skip to content

Remove empty peer list in API GET /torrents endpoint #536

@josecelano

Description

@josecelano

The endpoint to get the list of torrents returns a list of items like this:

[
  {
    "info_hash": "0031ad8520ddfebd856d70776063e477eaf07ada",
    "seeders": 0,
    "completed": 0,
    "leechers": 1,
    "peers": null
    }
]

The peers list is always null even if there are peers. That's very confusing especially if you enable the config option remove_peerless_torrents. I would remove it.

cc @WarmBeer @da2ce7

Metadata

Metadata

Assignees

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions