d-komarov
6d5a6f05ad
Fix torrent files prioritization ( #3133 )
...
After setting file priority, any subsequent attempt to set different priorities will fail if there is a `file_priority` job running in in disk thread. This happens because `torrent::m_file_priority` is being updated before adding disk thread job. The problem is gone if the file priority vector owned by the torrent object, is modified in the `torrent::on_file_priority` callback, when disk job finishes.
2018-07-04 08:16:33 +02:00
arvidn
4576723090
bump version to 1.1.8
2018-06-25 12:25:11 +02:00
Arvid Norberg
747fcb633a
fix typo in client.py. introduce parse_magnet_uri_dict to python binding (returning a dict) in preparation for next major version that will release an add_torrent_params object
2018-04-28 19:05:23 +02:00
Arvid Norberg
e1f99fb309
fix boost-python linking with latest version of brew
2018-04-21 18:35:05 +02:00
Steven Siloti
b3faba329d
create dummy alias for boost_python3 when python3 is unavailable
...
Versions of boost as recent as 1.63 do not create a stub alias for python3
which causes build failures if no version of python3 is configured.
Duplicate that behavior so that building works even on older versions of
boost.
2018-04-13 08:27:22 +02:00
arvidn
105934e578
bump version
2018-04-08 23:08:39 +02:00
Steven Siloti
e7e5805c56
support building python bindings for python 3 and 64 bit
2018-03-27 11:04:56 +02:00
arvidn
137baa6c04
expose post_dht_stats() to python binding
2018-03-17 16:19:20 +01:00
Arvid Norberg
3721d8e710
expose missing file_storage::file_name() in the python bindings
2018-03-15 14:54:21 +01:00
arvidn
b841860643
improve python binding for torrent_handle::connect_peer
2018-03-09 23:44:15 +01:00
arvidn
efd096d879
use unique peer_ids per connection
2018-01-23 16:40:16 +01:00
arvidn
7ff9f79af3
run fewer osx jobs on travis
2018-01-23 16:33:13 +01:00
arvidn
c8bf782bd0
bump version number to 1.1.6
2017-12-29 15:53:51 +01:00
arvidn
69ff30f50f
deprecate save_encryption_settings (they are part of the normal settings)
2017-12-27 13:39:36 +01:00
arvidn
7ea5946305
remove some last lexical_cast residual
2017-12-27 12:44:36 +01:00
arvidn
cfd50ae736
fix simple_client.py example, and reference it from the documentation
2017-11-23 22:01:54 +01:00
Andrew Resch
9f6631bfbe
Expose torrent_alert::torrent_name in python bindings ( #2449 )
2017-10-15 23:53:44 +02:00
Arvid Norberg
830ef0bedd
prevent dependency on openssl from leaking outside of libtorrent (libssl and libcrypto should not be a usage requirement). This cleans up most tests to build without having to also link against openssl
2017-10-09 17:15:35 +02:00
arvidn
9cad0d8cf2
expose peer class API in python binding
2017-09-24 23:25:20 -07:00
arvidn
ccbd6cbcfe
remove rss_reader.py, since rss has been reprecated. fix python binding for torrent_handle, to be hashable. update client_test.py to not use deprecated APIs and follow best (libtorrent) practice
2017-09-11 22:28:57 +02:00
Steven Siloti
1cd40ee7e3
python: return torrent handles in alerts by value
...
This is needed to avoid a dangling reference if the client stores a
reference to the handle.
2017-09-10 08:55:02 +02:00
arvidn
061732ddec
bump version
2017-09-04 15:35:45 +02:00
arvidn
41bfd41cea
fix python binding with new boost version
2017-08-25 09:43:01 +02:00
arvidn
5188c190db
bump version number
2017-07-02 15:03:46 -04:00
Bernhard M. Wiedemann
7e106b2660
sort input files
...
when building packages (e.g. for openSUSE Linux)
(random) filesystem order of input files
influences ordering of functions in the output,
thus without the patch, builds (in disposable VMs) would differ.
See https://reproducible-builds.org/ for why this matters.
Cherry-Picked-From commit 72f8ad9756
2017-05-31 22:47:46 -04:00
arvidn
387f3ba0ea
fix python3 portability issue in python binding
2017-05-21 16:58:23 -04:00
arvidn
0445ae4917
remove use of deprecated peer_info queued state in client.py
2017-04-13 04:48:33 -07:00
arvidn
91838d8a65
clean up declaration for removed function
2017-04-12 21:00:41 -07:00
arvidn
b065536023
bump version number
2017-04-02 18:34:45 -04:00
arvidn
852fada772
restore announce_entry's timestamp fields to posix time in python binding
2017-03-28 22:21:01 -04:00
arvidn
412325ba46
fix python binding byte encoding of info_hash in parse_magnet_uri
2017-03-28 01:54:46 -04:00
arvidn
910ccc528f
deprecate torrent_added_alert in favor of add_torrent_alert
2017-03-26 22:48:17 -04:00
Arvid Norberg
2e367ea53b
fix python binding for parse_magnet_uri ( #1838 )
...
fix python binding for parse_magnet_uri
2017-03-23 08:31:10 -04:00
arvidn
2258b53d87
in python binding, make announce_entry::last_error a dict instead of error_code
2017-02-24 22:22:48 -05:00
arvidn
3b359abc14
add pickle support to error_code python binding
2017-02-22 07:50:08 -05:00
Calum Lind
0e500978cd
Add a python bindings test for pickling trackers
...
* If ae.last_error (lt.error_code) is not converted in bindings to a dict
then pickling the trackers with fail.
2017-02-22 07:50:08 -05:00
sledgehammer_999
9bb420b074
Move include into implementation instead(from #1703 ).
2017-02-21 20:19:53 -05:00
arvidn
6d40d3a167
bump version number
2017-02-20 12:43:34 -05:00
arvidn
799cd8163b
fix python binding of create_torrent
2017-02-17 07:45:43 -05:00
Arvid Norberg
116802fcdf
update tuning documentation ( #1717 )
...
update tuning documentation and make the stats header be posted when logging is disabled (if stats_notifications are enabled)
2017-02-16 07:03:43 -05:00
arvidn
cbd1c26a11
fix ABI compatibility issue introduced with preformatted entry type
2017-02-12 20:42:30 -05:00
arvidn
db32618c39
system_clock fix
2017-02-11 08:07:43 -05:00
Calum Lind
4492cada4a
Backport time_point to python convertor. Fix bindings returning invalid date from time_point convertor
2017-02-11 08:07:43 -05:00
Calum Lind
de30f357b3
Add missing announce_entry properties to python bindings
...
Fix and refactor the announce_entry class
- Removed verified from torrent_handle dict to announce_entry as it's read-only.
- Changed source and send_stats to read_write properties.
- Switched trivial type properties to using read_only or read_write.
2017-02-11 08:07:43 -05:00
arvidn
7ff4f56ae2
add function to get default settings
2017-02-05 11:31:43 -05:00
arvidn
62db98ca09
add missing min_memory_usage() and high_performance_seed() settings presets to python
2017-01-24 01:34:05 -05:00
arvidn
27001750a4
add python binding for generate_fingerprint
2017-01-16 14:27:02 -05:00
Calum Lind
de499310f5
[ #1217 ] Fix RuntimeWarning registering pointer with Python
...
This fix checks for existing registered pointers for alert so that Boost
does not output the following warning when importing libtorrent in Python:
> RuntimeWarning: to-Python converter for boost::shared_ptrlibtorrent::alert already registered; second conversion method ignored.
2017-01-14 22:41:38 -05:00
arvidn
febcbbf17c
fix make_torrent.py to not use deprecated functions
2017-01-14 16:04:01 -05:00
arvidn
eb5b0e9897
fix another c++98 issue
2016-12-24 11:27:58 -08:00