Files
gopeed/pkg/download/testdata/extensions/on_start/index.js
T

6 lines
198 B
JavaScript

gopeed.events.onStart(async function (ctx) {
gopeed.logger.info("url", ctx.task.meta.req.url);
ctx.task.setUrl("https://github.com");
ctx.task.meta.req.putLabel('modified', 'true');
});