trakt-tools 1.6.0 → 1.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
- package/src/index.ts +9 -2
package/openclaw.plugin.json
CHANGED
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -278,10 +278,17 @@ export default definePluginEntry({
|
|
|
278
278
|
|
|
279
279
|
try {
|
|
280
280
|
const args = buildCliArgs(tool.command, tool.subcommand, params, config);
|
|
281
|
+
// 30s was too tight for `progress`, which iterates ~50 API calls
|
|
282
|
+
// (watchlist + watched + N× GetShowProgress) and empirically runs
|
|
283
|
+
// 35-45s for users with substantial watch history. 120s gives
|
|
284
|
+
// generous headroom. maxBuffer bumped to 4MB to fit the full
|
|
285
|
+
// progress --all response (completed + in_progress + not_started).
|
|
286
|
+
// Follow-up: parallelize GetShowProgress loop or add a --filter
|
|
287
|
+
// flag so per-show progress checks don't hammer 50 API calls.
|
|
281
288
|
const { stdout } = await execFileAsync(cliPath, args, {
|
|
282
289
|
encoding: 'utf8',
|
|
283
|
-
timeout:
|
|
284
|
-
maxBuffer: 1024 * 1024,
|
|
290
|
+
timeout: 120_000,
|
|
291
|
+
maxBuffer: 4 * 1024 * 1024,
|
|
285
292
|
});
|
|
286
293
|
|
|
287
294
|
let result: unknown;
|