Opened 3 years ago
Last modified 9 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:1 by , 3 years ago
comment:5 by , 9 months ago
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.
PR: https://github.com/deluge-torrent/deluge/pull/343