Opened 2 years ago

Last modified 5 months ago

#3499 new patch

Stop using deprecated LibTorrent features

Reported by: DjLegolas Owned by:
Priority: critical Milestone: 2.1.1
Component: Core Version: 2.0.0
Keywords: Cc:

Description

As part of the on-going addition of the support for libtorrent 2.0 we should stop using the deprecated methods.
As a "bonus" feature, when running pytest, we get DeprecationWarning prints, so finding is not that of an issue.

Change History (5)

comment:2 Changed 2 years ago by Cas

There are more deprecated functions being used so keeping issue open

comment:3 Changed 2 years ago by Cas

  • Milestone changed from 2.1.x to 2.1.0

Milestone renamed

comment:4 Changed 22 months ago by Cas

  • Milestone changed from 2.1.0 to 2.1.1

Ticket retargeted after milestone closed

comment:5 Changed 5 months ago by Cas

Move to using torrent status.flags to get torrent state instead of status properties. e.g.

- is_paused = torrent.status.paused
+ is_paused = torrent.status.flags && lt::torrent_flags::paused

Need to remember to keep compatibility with libtorrent 1.2 for now while making these changes.

Note: See TracTickets for help on using tickets.