From 9ba3f691d41f06d6db7c9bc97c9d7c33d2117b3c Mon Sep 17 00:00:00 2001 From: jenz Date: Fri, 4 Sep 2026 17:42:38 +0200 Subject: [PATCH] now correctly continue fetching every page for the search instead of stopping on the first. also added the launch.sh and updated the gitignore --- .gitignore | 4 ++++ launch.sh | 2 ++ src/components/DownloadList.vue | 5 +++++ 3 files changed, 11 insertions(+) create mode 100755 launch.sh diff --git a/.gitignore b/.gitignore index a547bf3..2b4d3f3 100644 --- a/.gitignore +++ b/.gitignore @@ -22,3 +22,7 @@ dist-ssr *.njsproj *.sln *.sw? + +.env +tsconfig.tsbuildinfo +package-lock.json diff --git a/launch.sh b/launch.sh new file mode 100755 index 0000000..7d7f1a0 --- /dev/null +++ b/launch.sh @@ -0,0 +1,2 @@ +#!/bin/bash +/snap/bin/node /home/nonroot/unloze-wrapper/server.js diff --git a/src/components/DownloadList.vue b/src/components/DownloadList.vue index b3b5d41..3e4c009 100644 --- a/src/components/DownloadList.vue +++ b/src/components/DownloadList.vue @@ -204,6 +204,11 @@ export default defineComponent({ this.files.push(...(data.files || [])); this.nextToken = data.nextToken; this.loading = false; + + // Keep fetching until we've retrieved every page for this prefix/search + if (data.isTruncated && data.nextToken) { + await this.fetchList(false); + } }, onSearch() { this.nextToken = null;