From 3e1803a3b8b79a15ae9147ad6ed7a870cbcb6f47 Mon Sep 17 00:00:00 2001 From: Ghost_chu Date: Wed, 11 Dec 2024 16:38:46 +0800 Subject: [PATCH 1/8] #683 Fix missing sizeWhenDone field --- .../downloader/impl/transmission/Transmission.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/ghostchu/peerbanhelper/downloader/impl/transmission/Transmission.java b/src/main/java/com/ghostchu/peerbanhelper/downloader/impl/transmission/Transmission.java index 206b762b31..311945622b 100644 --- a/src/main/java/com/ghostchu/peerbanhelper/downloader/impl/transmission/Transmission.java +++ b/src/main/java/com/ghostchu/peerbanhelper/downloader/impl/transmission/Transmission.java @@ -125,7 +125,7 @@ public DownloaderLoginResult login0() { @Override public List 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 rsp = client.execute(torrent); return rsp.getArgs().getTorrents().stream() .filter(t -> t.getStatus() == Status.DOWNLOADING || t.getStatus() == Status.SEEDING) @@ -178,7 +178,7 @@ private void relaunchTorrents(Collection 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 rsp = client.execute(torrentList); List torrents = rsp.getArgs().getTorrents().stream() .filter(t -> t.getStatus() != Status.STOPPED) From 009d345e0aa2a5b47d7736faf0b51d18b00e2875 Mon Sep 17 00:00:00 2001 From: Ghost_chu Date: Wed, 11 Dec 2024 17:37:27 +0800 Subject: [PATCH 2/8] Update to install4j 11.x --- .github/workflows/build_installers.yml | 2 +- install4j/project.install4j | 24 +++++++++--------------- pom.xml | 2 +- 3 files changed, 11 insertions(+), 17 deletions(-) diff --git a/.github/workflows/build_installers.yml b/.github/workflows/build_installers.yml index b6e6a6eb98..1d1b11f1c0 100644 --- a/.github/workflows/build_installers.yml +++ b/.github/workflows/build_installers.yml @@ -19,7 +19,7 @@ jobs: - uses: luangong/setup-install4j@v1 name: Setup Install4j with: - version: 10.0.8 + version: 11.0.1 license: ${{ secrets.INSTALL4J_LICENSE }} - name: Make installers run: | diff --git a/install4j/project.install4j b/install4j/project.install4j index 6cf0908b19..2ce7dc6f20 100644 --- a/install4j/project.install4j +++ b/install4j/project.install4j @@ -1,5 +1,5 @@ - + @@ -1575,15 +1575,11 @@ return true; - - - + - - - + @@ -1592,23 +1588,21 @@ return true; - - - + - + - + - + - + - + diff --git a/pom.xml b/pom.xml index 9bba6a9915..7b78433a94 100644 --- a/pom.xml +++ b/pom.xml @@ -211,7 +211,7 @@ ${project.basedir}/target/PeerBanHelper.jar - -Xmx2G + -Xmx4G From fbdedfc223fe4b29275ea16bafbeaa4b5564e9e5 Mon Sep 17 00:00:00 2001 From: Ghost_chu Date: Thu, 12 Dec 2024 02:15:22 +0800 Subject: [PATCH 3/8] =?UTF-8?q?=E8=8E=B7=E5=8F=96=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5=E6=97=B6=EF=BC=8C=E4=B8=8D=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5=E5=AF=B9=E8=AF=9D=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install4j/project.install4j | 1 + 1 file changed, 1 insertion(+) diff --git a/install4j/project.install4j b/install4j/project.install4j index 2ce7dc6f20..57839d778b 100644 --- a/install4j/project.install4j +++ b/install4j/project.install4j @@ -519,6 +519,7 @@ return !Files.getFileStore(dir).isReadOnly() && ((Util.isWindows() & + ${installer:updatesUrl?:${compiler:sys.updatesUrl}} updateDescriptor From 19c5f4cb4f981a89bfec18f62736bf1a7f269526 Mon Sep 17 00:00:00 2001 From: Ghost_chu Date: Thu, 12 Dec 2024 14:59:54 +0800 Subject: [PATCH 4/8] bump 7.2.2 --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 7b78433a94..b4bd60005c 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ com.ghostchu.peerbanhelper peerbanhelper - 7.2.1 + 7.2.2 jar PeerBanHelper From 7ecfa3baf856b8c17af25111f36243c47140ea0a Mon Sep 17 00:00:00 2001 From: Ghost_chu Date: Thu, 12 Dec 2024 16:10:54 +0800 Subject: [PATCH 5/8] =?UTF-8?q?=E7=A7=BB=E9=99=A4=20alpine=20=E5=AE=89?= =?UTF-8?q?=E8=A3=85=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install4j/project.install4j | 6 ------ 1 file changed, 6 deletions(-) diff --git a/install4j/project.install4j b/install4j/project.install4j index 57839d778b..19636973d5 100644 --- a/install4j/project.install4j +++ b/install4j/project.install4j @@ -1599,12 +1599,6 @@ return true; - - - - - - From 3f69dabba790286ccb1f7f7554c94f3f7b9090f0 Mon Sep 17 00:00:00 2001 From: Gaojianli Date: Thu, 12 Dec 2024 16:51:35 +0800 Subject: [PATCH 6/8] remove useless style --- webui/src/components/markdown.vue | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/webui/src/components/markdown.vue b/webui/src/components/markdown.vue index df67a355ad..b8b2689a86 100644 --- a/webui/src/components/markdown.vue +++ b/webui/src/components/markdown.vue @@ -10,9 +10,9 @@
- From 9ebb741bbc8199068356d5e78dbfadd8129e59bd Mon Sep 17 00:00:00 2001 From: Gaojianli Date: Thu, 12 Dec 2024 16:52:21 +0800 Subject: [PATCH 7/8] =?UTF-8?q?=E6=83=B3=E4=B8=8D=E6=98=8E=E7=99=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webui/src/components/changelogViewer.vue | 2 +- webui/src/components/markdown.vue | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/webui/src/components/changelogViewer.vue b/webui/src/components/changelogViewer.vue index 1647bbe5fe..597829dc6a 100644 --- a/webui/src/components/changelogViewer.vue +++ b/webui/src/components/changelogViewer.vue @@ -10,7 +10,7 @@ {{ t('changeLogModel.changelog') }} diff --git a/webui/src/components/markdown.vue b/webui/src/components/markdown.vue index b8b2689a86..ec377e0de2 100644 --- a/webui/src/components/markdown.vue +++ b/webui/src/components/markdown.vue @@ -2,7 +2,7 @@