Commit Graph

194 Commits

Author SHA1 Message Date
xavier2k6 790b6629f6 Fix some typos 2024-09-29 14:13:46 +02:00
luzpaz 63373cf012 Fixes various typos
Found via `codespell -q 3 -S "*.pem,*.torrent,./docs/hunspell,./src/puff.cpp" -L bu,fo,folx,ihs,ot,readd,requestor,te`
2023-08-24 07:52:41 +02:00
arvidn c5be3bd998 fix python bindings to not trigger asserts, but add run-time checks 2023-01-21 16:00:19 +01:00
arvidn 74d82a0cd7 tweak pad file placement to match reference implementation (tail-padding) 2022-09-15 13:01:59 +02:00
arvidn e3a00498d4 python binding 2022-06-15 13:06:53 +02:00
arvidn 1c3ce6a456 merged RC_1_2 into RC_2_0 2022-02-07 00:14:54 +01:00
arvidn 6cb94424ad fix python binding for settings_pack conversion 2022-02-05 14:40:57 +01:00
arvidn cf9e35862d add test for dht_get_peers 2022-01-07 22:46:42 -05:00
arvidn 3f56cbd3cd merged RC_1_2 into RC_2_0 2021-09-29 23:56:43 +02:00
AllSeeingEyeTolledEweSew af0d039d32 Default python bindings to crypto=openssl 2021-09-28 15:30:06 +02:00
AllSeeingEyeTolledEweSew efa20e40b6 Restore test_dht_settings 2021-09-28 07:03:09 +02:00
arvidn b93a740d92 extend test coverage of adding torrents with various add_torrent_params settings, and fix issue with backwards compatibility of info_hash field 2021-06-21 20:12:58 +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 28eb1f8bc4 add test for find_torrent in python binding 2021-04-23 19:04:25 +02:00
arvidn af54589abb add tests for adding magnet links via deprecated add_torrent_params::info_hash field 2021-04-23 11:43:13 +02:00
arvidn f0968574ba expand test for torrent_list. fix issue when adding a hybrid torrent whith a sh1-hash the same as truncated sha256 hash 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 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 82c95028cf back-port fix to shutil.copy to not fail when the file is already there 2021-04-11 21:56:57 +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
Arvid Norberg d8bbad389d fix load_file(), used to load files in the torrent_info constructor and the posix part file, to support non-ascii characters on windows 2021-01-26 10:39:26 +01:00
arvidn f606612b87 merged RC_1_2 into RC_2_0 2021-01-12 02:31:55 +01:00
arvidn c0c9acd499 add test for category_t.all_categories in python binding 2021-01-12 02:27:03 +01:00
arvidn 60e14548ee merged RC_1_2 into RC_2_0 2020-09-03 08:44:52 +02:00
arvidn 386596aa88 fix regression in python binding for move_storage() 2020-09-02 06:23:33 -07:00
arvidn 3a831cc83f fix python binding build without deprecated functions 2020-08-30 14:39:57 -07:00
arvidn 5034d6454a merged RC_1_2 into RC_2_0 2020-08-30 10:38:07 +02:00
arvidn a5c2e13156 fix usage of deprecated functions in python example 2020-08-28 00:37:02 -07:00
arvidn b94d0f2698 fix unicode string conversion in python binding 2020-08-26 02:50:19 -07:00
arvidn 32975be1d0 restore add_torrent_params::info_hash and use add_torrent_params::info_hashes for the new v1 and v2 type 2020-08-16 08:27:20 -07:00
Arvid Norberg b7ceb3c85c merged RC_1_2 into RC_2_0 2020-06-28 12:33:20 +02:00
arvidn 55d9ee3451 expose load_torrent_limits in python binding, as a dict 2020-06-26 17:34:35 +02:00
arvidn 63f71a6443 merge RC_1_2 into RC_2_0 2020-06-15 02:44:40 +02:00
arvidn 5e40926ec4 disallow calling add_piece() during checking 2020-06-14 13:25:55 -07:00
Arvid Norberg 62f9a0ed74 make create_torrent fail rather than produce invalid torrents. By default, create a torrent corresponding to which hashes were set 2020-06-10 02:49:03 -07:00
arvidn 6e9f05ab9f restore info_hash() API and name the v2 API info_hashes() 2020-05-30 14:00:24 +02:00
arvidn eddc6a84e7 merged RC_1_2 into master 2020-05-30 00:41:48 +02:00
arvidn 055ff94113 add set_alert_fd in python binding, to supersede set_alert_notify 2020-05-29 23:28:48 +02:00
arvidn 3e5d319d10 m_info_section in torrent_info is immutable and does not need to be copied 2020-05-29 08:51:06 +02:00
arvidn 5cbdfa2557 merged RC_1_2 into master 2020-05-13 14:28:23 +02:00