-
With force_reannounce, how would one pass a For completeness, here's the libtorrent method signature: void force_reannounce(int seconds = 0, int idx = -1, reannounce_flags_t = {}) const; |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
you can see the binding definition here: https://github.com/arvidn/libtorrent/blob/RC_2_0/bindings/python/src/torrent_handle.cpp#L536 The flag value is defined here: https://github.com/arvidn/libtorrent/blob/RC_2_0/bindings/python/src/torrent_handle.cpp#L651 and should be accessible to python as |
Beta Was this translation helpful? Give feedback.
-
Bit unrelated, but wouldn't the correct signature in the docs be void force_reannounce(int seconds = 0, int idx = -1, reannounce_flags_t flags = {}) const; vs current void force_reannounce(int seconds = 0, int idx = -1, reannounce_flags_t = {}) const; (note the missing |
Beta Was this translation helpful? Give feedback.
you can see the binding definition here: https://github.com/arvidn/libtorrent/blob/RC_2_0/bindings/python/src/torrent_handle.cpp#L536
the parameters are named, so I believe you should be able to get away with just specifying
flags=
The flag value is defined here: https://github.com/arvidn/libtorrent/blob/RC_2_0/bindings/python/src/torrent_handle.cpp#L651
and should be accessible to python as
lt.reannounce_flags_t.ignore_min_interval