Commit Graph

818 Commits

Author SHA1 Message Date
AllSeeingEyeTolledEweSew 5c22296be5 Backport 614d10e34 (introduce strong type for socket type index) 2021-10-25 02:32:07 +02:00
AllSeeingEyeTolledEweSew 7ee6095f0a Backport 8305c40d6 (initial master commit) 2021-10-25 02:32:07 +02:00
AllSeeingEyeTolledEweSew 5a2c9876d5 Backport d6b9d03a9 (remove since-long deprecated wstring overloads) 2021-10-22 13:06:50 +02:00
arvidn 3feba04e6d fix missing python binding for file_progress_flags 2021-09-27 08:37:15 +02:00
arvidn 0914dcd6b6 avoid localtime() 2021-08-28 09:48:55 +02:00
arvidn d05f04eafa document root_hash parameter to file_storage::add_file(). Add missing members to python binding of file_storage 2021-07-25 22:04:59 -07:00
arvidn bf69a7f7e6 Merge branch 'RC_1_2' into RC_2_0 2021-07-22 18:01:24 -07:00
Aykut Yilmaz 18f12efc54 add torrent_status::total field to python bindings 2021-07-12 10:12:38 -07:00
Aykut Yilmaz 25af71de0b add torrent_status::total field to python bindings 2021-07-11 21:10:35 -07:00
arvidn c996ed7ef7 remove remnants of boost.chrono use 2021-06-20 14:21:12 +02:00
arvidn eaec91b894 fix python binding for session_params 2021-05-23 09:35:33 +02:00
arvidn 1ca6c465f1 merged RC_1_2 into RC_2_0 2021-04-23 21:43:26 +02:00
arvidn ff8c2c8cb1 expose session_params in python bindings 2021-04-23 21:41:21 +02:00
arvidn 22af326f6c fix bindings for dht alert fields 2021-04-23 21:41:02 +02:00
arvidn 91f823e9ba accept info_hash_t as info_hashes field in add_torrent_params dict 2021-04-22 16:29:33 +02:00
arvidn 289bb54034 add converter for dht_lookup 2021-04-17 11:12:04 +02:00
arvidn 749c789e24 fix python binding for add_torrent_params members 2021-04-16 08:38:30 +02:00
arvidn 44d4f74c95 add sha256_hash type. add __hash__ member to info_hash_t. add torrent_info constructor overload for a sha256_hash 2021-04-16 00:57:26 +02:00
arvidn 1dbda9293a merge RC_1_2 into RC_2_0 2021-04-13 14:55:51 +02:00
arvidn ff47ec334f fix msvc warning in python binding 2021-04-12 02:37:20 +02:00
arvidn b710107f09 report deprecation warnings in python bindings 2021-04-12 00:51:55 +02:00
arvidn 1f6a2efd2f fix python binding for torrent_info.add_http_seed 2021-04-11 22:45:59 +02:00
arvidn 60d05b339b fix python bindings for add_tracker() and add_url_seed() 2021-04-11 22:45:59 +02:00
arvidn 23fa74367b in python binding, fix torrent_info overload that takes an entry (which in python is dict, list, int, string, bytes or tuple), to just take a dict. Otherwise bytes will clash with the overload taking a bencoded buffer 2021-04-11 22:45:59 +02:00
arvidn aba87f396b improve separation of PyBytes and PyUnicode. string_view cannot be created from bytes. fix torrent_info overload to take string_view to resolve correctly against the bytes overload 2021-04-11 22:45:59 +02:00
arvidn 449a022cbe fix bug in python converter from PyUnicode -> string_view 2021-04-11 22:45:59 +02:00
arvidn 6941d21c86 fix python binding for ip_filter and add unit test coverage 2021-04-11 21:57:49 +02:00
arvidn c0117f0a57 remove python binding for (deprecated) fingerprint::name member, since it's broken right now. There's no converter from a plain C char-array 2021-04-11 21:56:26 +02:00
arvidn 42460b912b deprecate inputs to bencode() other than int, list, dict, string, bytes and tuples (tuples are for preformatted buffers) 2021-04-11 11:21:59 +02:00
arvidn 20f37f8253 add a file_prio_alert, posted when file priorities are applied 2021-03-21 13:56:31 +01:00
Arvid Norberg 789c29b8e4 add flag to force canonical file order and padding for v1-only torrents 2021-03-14 23:21:44 +01:00
Arvid Norberg b28a83598f merged RC_1_2 into RC_2_0 2021-03-04 08:00:19 +01:00
arvidn 18f578d54c fix python binding for get_torrent_status() where a predicate is passed in 2021-03-04 07:49:26 +01:00
Arvid Norberg 95efd7c7b6 wrap passing in torrent_info into libtorrent from python, to always make a copy of it, that's constructed without any ownership dependency on python 2021-03-03 16:39:14 +01:00
Arvid Norberg 9a6f502943 add missing python binding for event_t 2021-02-17 21:10:24 +01:00
arvidn fa53a4d723 merged RC_1_2 into RC_2_0 2021-01-26 23:17:05 +01:00
arvidn 14b8da70e2 fix (benign) typo in python binding for std::error_code 2021-01-22 23:07:26 +01:00
arvidn f606612b87 merged RC_1_2 into RC_2_0 2021-01-12 02:31:55 +01:00
arvidn a667df1fac fix issue in python binding interpreting int settings > INT_MAX 2021-01-12 02:27:03 +01:00
Arvid Norberg fd3ebdb254 merge RC_1_2 into RC_2_0 2020-12-24 17:36:20 +01:00
Arvid Norberg 634497af0e the session constructor taking a settings_pack directly was deprecated, but this is still the only way to construct a session via the python bindings. session_params does not have a python binding (yet). When updating the python binding, there was an incorrect assumption that the session would be constructed via an implicitly created session_params object (which would happen if deprecated functions was disabled). However, when the session is constructed with the deprecated settings_pack, the flags actually matter for adding default plugins. The python binding could be improved in this regard, ideally to better match the C++ API by having a session_params object 2020-12-24 16:35:25 +01:00
Arvid Norberg 9d8d798071 fix python binding for value in dht put alerts 2020-12-23 17:43:57 +01:00
arvidn f19669f41e merge RC_1_2 into RC_2_0 2020-12-17 02:44:34 +01:00
Arvid Norberg 079f2b6a1e fix warning in python bindings 2020-12-15 08:55:46 +01:00
arvidn 49b4dfa835 fix bug in python binding for dht_put_mutable_item 2020-12-12 22:19:27 +01:00
arvidn b2d7e07e1a merged RC_1_2 into RC_2_0 2020-11-09 13:12:14 +01:00
arvidn 678a610f91 deprecate torrent_status::allocating. This state is no longer used 2020-11-08 16:53:20 +01:00
arvidn f3ed9a9956 merged RC_1_2 into RC_2_0 2020-10-21 11:57:50 +02:00
arvidn 9bfbee334e support constructing sessions in paused mode via new session_flag 2020-10-16 13:56:51 +02:00
Arvid Norberg 3b96033dff merged RC_1_2 into RC_2_0 2020-10-09 14:47:14 +02:00