arvidn
aee6a8e0ed
limit the piece size in create_torrent constructor
2024-10-01 10:36:01 +02:00
arvidn
44da281de2
fixup mingw build. Don't define _FILE_OFFSET_BITS on windows because MingW has a hard time with it
2023-03-19 19:31:41 +01:00
arvidn
b6d09d9368
add create_torrent::generate_buf() function to generate into a buffer
2022-09-30 20:54:08 +02:00
arvidn
dc795b906d
more create_torrent tests
2022-09-18 17:56:47 +02:00
arvidn
c1687bbf7f
extend test coverage for create_torrent
2022-09-15 13:01:59 +02:00
arvidn
74d82a0cd7
tweak pad file placement to match reference implementation (tail-padding)
2022-09-15 13:01:59 +02:00
arvidn
550d3c7d9f
update copyright headers
2022-06-22 21:42:55 +02:00
arvidn
276a63afea
random cleanup
2022-06-06 16:34:41 +02:00
arvidn
a32055d149
fix issue creating v2 torrent from torrent_info with empty file
2022-02-28 00:20:52 +01:00
Alden Torres
abd51db491
minor fix in test_create_torrent v2_only
2021-06-19 09:45:15 +02:00
arvidn
fd05f3be90
fix issue creating and loading v2 torrents with empty files
2021-04-18 17:17:52 +02:00
arvidn
9b957f6268
use user defined literal for piece_index_t in tests
2021-03-22 14:08:53 +01:00
arvidn
de8e69a795
simplify tests by defining a user defined literal for file_index_t
2021-03-21 03:32:58 +01:00
Arvid Norberg
53a14dded2
allow not setting a creation date in create_torrent (but default to current timestamp). Provide more prominent shortcuts to ask a torrent_info about whether it has v1 and v2 metadata. make torrent_info::piece_layer() also return a hash for small files (that only have the root-hash).
2020-12-27 21:01:07 +01:00
Arvid Norberg
79c69c5d89
add unit test file attribute in single-file torrent creation
2020-11-11 14:16:12 +01:00
arvidn
b2d7e07e1a
merged RC_1_2 into RC_2_0
2020-11-09 13:12:14 +01:00
Arvid Norberg
1b52c6673e
fix bug creating torrents with symbolic links
2020-11-02 21:10:02 +01:00
arvidn
5935f63ead
update copyrights
2020-09-01 05:14:17 -07:00
arvidn
0f235540d8
fix torrent round-trip for v2 torrents in create_torrent
2020-08-12 00:18:47 -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
8502ccf27b
fix create torrent for v2-only torrents from torrent_info
2020-06-04 23:11:14 +02:00
arvidn
6e9f05ab9f
restore info_hash() API and name the v2 API info_hashes()
2020-05-30 14:00:24 +02:00
arvidn
d3f7a363c2
update copyright year
2019-08-29 00:13:04 +02:00
Steven Siloti
8e1ed1a23e
make_torrent: add option to generate a V2 only torrent
2019-08-10 09:28:38 -07:00
Steven Siloti
1a7ccf240f
generate v2 metadata
2019-08-10 09:28:38 -07:00
Arvid Norberg
c98b700d4f
merged RC_1_1
2018-05-10 22:48:39 +02:00
arvidn
a2c6136f44
add round-trip test to create_torrent
2018-05-10 19:04:26 +02:00
arvidn
a93429c5db
modernize piece-size selection in torrent creator and add a test
2018-01-09 03:19:44 -05:00
arvidn
c4eb4c8b5f
use span in torrent_info constructors and deprecate the redundant flags argument
2017-07-22 00:00:44 -07:00
arvidn
d138f02424
introduce lt namespace alias
2017-04-23 23:43:58 -04:00
arvidn
cbd1c26a11
fix ABI compatibility issue introduced with preformatted entry type
2017-02-12 20:42:30 -05:00
arvidn
20aeed09e1
clean up tests
2016-11-12 17:39:34 -05:00
Arvid Norberg
6148984426
remove whitespace at end of line ( #1245 )
2016-10-22 11:47:24 -04:00
Pavel Pimenov
91845aa6c8
Prevent duplicate url ( #1231 )
...
prevent creating torrents with duplicate trackers as well as adding duplicate trackers to torrent_info
2016-10-19 17:28:35 -04:00
Alden Torres
bf0008933a
refactor to use std::shared_ptr with peer_connection, core and tests ( #1050 )
2016-08-31 21:42:18 -04:00
Arvid Norberg
770935cd46
modernize-use-nullptr ( #894 )
2016-07-09 16:26:26 -04:00
Arvid Norberg
985436636e
added new preformatted type to bencode entry ( #698 )
...
added new preformatted type to bencode entry to support carrying a verbatim copy of an already bencoded subtree. This is to support saving torrents in resume data and create_torrent based on existing torrents, in order to preserve key order
2016-05-05 21:38:57 -04:00