feat: support extension onDone event (#728)

This commit is contained in:
Levi authored and GitHub committed 2024-09-07 10:10:39 +08:00
1 parent 0c17093b1a
commit 51244133e0
5 files changed
+80 -6

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
gopeed.events.onDone(async function (ctx) {
gopeed.logger.info("url", ctx.task.meta.req.url);
ctx.task.meta.req.labels['modified'] = 'true';
});
+16
View File
@@ -0,0 +1,16 @@
{
"name": "on-done",
"title": "gopeed extension on done event test",
"version": "0.0.1",
"scripts": [
{
"event": "onDone",
"match": {
"urls": [
"*://github.com/*"
]
},
"entry": "index.js"
}
]
}