Skip to content

Commit

Permalink
update to libtorrent master HEAD (#257)
Browse files Browse the repository at this point in the history
  • Loading branch information
aldenml committed Oct 8, 2023
1 parent cfd0fac commit d665ed5
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 3 deletions.
8 changes: 8 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
* update to libtorrent master
* improved java api layer
* lt:allow to change save path without any additional actions
* lt:allow to change save path without moving any files
* lt:peer_list fix, clear the m_candidate_cache when clear peer_list, and set
m_num_seeds to 0
* lt:schedule DHT announces using milliseconds rather than seconds
* lt:fix issue with web seed connections when they close and re-open
* lt:removing an already removed torrent is a no-op

2.1.0-30

Expand Down
14 changes: 13 additions & 1 deletion src/main/java/org/libtorrent4j/MoveFlags.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,19 @@ public enum MoveFlags {
* If any files exist in the target, take those files instead
* of the ones we may have in the source.
*/
DONT_REPLACE(move_flags_t.dont_replace);
DONT_REPLACE(move_flags_t.dont_replace),

/**
* Don't move any source files, just forget about them
* and begin checking files at new save path.
*/
RESET_SAVE_PATH(move_flags_t.reset_save_path),

/**
* Don't move any source files, just change save path
* and continue working without any checks.
*/
RESET_SAVE_PATH_UNCHECKED(move_flags_t.reset_save_path_unchecked);

MoveFlags(move_flags_t swigValue) {
this.swigValue = swigValue;
Expand Down
4 changes: 3 additions & 1 deletion src/main/java/org/libtorrent4j/swig/move_flags_t.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ public final class move_flags_t {
public final static move_flags_t always_replace_files = new move_flags_t("always_replace_files");
public final static move_flags_t fail_if_exist = new move_flags_t("fail_if_exist");
public final static move_flags_t dont_replace = new move_flags_t("dont_replace");
public final static move_flags_t reset_save_path = new move_flags_t("reset_save_path");
public final static move_flags_t reset_save_path_unchecked = new move_flags_t("reset_save_path_unchecked");

public final int swigValue() {
return swigValue;
Expand Down Expand Up @@ -47,7 +49,7 @@ private move_flags_t(String swigName, move_flags_t swigEnum) {
swigNext = this.swigValue+1;
}

private static move_flags_t[] swigValues = { always_replace_files, fail_if_exist, dont_replace };
private static move_flags_t[] swigValues = { always_replace_files, fail_if_exist, dont_replace, reset_save_path, reset_save_path_unchecked };
private static int swigNext = 0;
private final int swigValue;
private final String swigName;
Expand Down
2 changes: 1 addition & 1 deletion swig/deps/libtorrent
Submodule libtorrent updated 121 files

0 comments on commit d665ed5

Please sign in to comment.