Skip to content

Commit

Permalink
#683 Fix missing sizeWhenDone field
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghost-chu committed Dec 11, 2024
1 parent 96c691a commit 3e1803a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public DownloaderLoginResult login0() {

@Override
public List<Torrent> getTorrents() {
RqTorrentGet torrent = new RqTorrentGet(Fields.ID, Fields.HASH_STRING, Fields.NAME, Fields.PEERS_CONNECTED, Fields.STATUS, Fields.TOTAL_SIZE, Fields.PEERS, Fields.RATE_DOWNLOAD, Fields.RATE_UPLOAD, Fields.PEER_LIMIT, Fields.PERCENT_DONE);
RqTorrentGet torrent = new RqTorrentGet(Fields.ID, Fields.HASH_STRING, Fields.NAME, Fields.PEERS_CONNECTED, Fields.STATUS, Fields.TOTAL_SIZE, Fields.PEERS, Fields.RATE_DOWNLOAD, Fields.RATE_UPLOAD, Fields.PEER_LIMIT, Fields.PERCENT_DONE, Fields.SIZE_WHEN_DONE);
TypedResponse<RsTorrentGet> rsp = client.execute(torrent);
return rsp.getArgs().getTorrents().stream()
.filter(t -> t.getStatus() == Status.DOWNLOADING || t.getStatus() == Status.SEEDING)
Expand Down Expand Up @@ -178,7 +178,7 @@ private void relaunchTorrents(Collection<Long> ids) {
RqTorrentGet torrentList = new RqTorrentGet(Fields.ID, Fields.HASH_STRING, Fields.NAME,
Fields.PEERS_CONNECTED,
Fields.STATUS, Fields.TOTAL_SIZE, Fields.PEERS, Fields.RATE_DOWNLOAD,
Fields.RATE_UPLOAD, Fields.PEER_LIMIT, Fields.PERCENT_DONE, Fields.IS_PRIVATE);
Fields.RATE_UPLOAD, Fields.PEER_LIMIT, Fields.PERCENT_DONE, Fields.IS_PRIVATE, Fields.SIZE_WHEN_DONE);
TypedResponse<RsTorrentGet> rsp = client.execute(torrentList);
List<Long> torrents = rsp.getArgs().getTorrents().stream()
.filter(t -> t.getStatus() != Status.STOPPED)
Expand Down

0 comments on commit 3e1803a

Please sign in to comment.