Skip to content

torrent.trackers makes a request even if includTrackers was used #581

Description

@BigBLittleS

Describe the bug

When calling torrent_info(includeTrackers = True) qbittorrent will return the trackers in the response.

When using the torrents from the response if you use torrent.trackers it makes another API request to get the trackers instead of using what was returned from the initial request.

Steps to reproduce

This will make a request for the trackers when torrent.trackers is accessed

torrents = con.torrent_info(includeTrackers = True)
for torrent in torrents:
  for tracker in torrent.trackers:
    print(tracker.url)

Expected behavior

The trackers included in the torrent_info request should be used instead.

Screenshots

No response

Environment

  • Operating System: Linux
  • Python version: python-3.13.9
  • Software versions:
    • qBittorrent: 5.1.2
    • qbittorrent-api: HEAD

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions