-
Notifications
You must be signed in to change notification settings - Fork 0
/
hook.json
60 lines (60 loc) · 1.6 KB
/
hook.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
[
{
"id": "moviepilot",
"execute-command": "/path/webhook/task_moviepilot.sh",
"response-message": "Request accepted",
"pass-arguments-to-command": [
{
"source": "payload",
"name": "data.transferinfo.file_list_new"
},
{
"source": "payload",
"name": "data.transferinfo.path"
},
{
"source": "payload",
"name": "data.meta.type"
},
{
"source": "payload",
"name": "data.mediainfo.category"
}
],
"trigger-rule":{
"match": {
"type": "value",
"value": "transfer.complete",
"parameter": {
"source": "payload",
"name": "type"
}
}
}
},
{
"id": "nastools",
"execute-command": "/path/webhook/task_nastool.sh",
"response-message": "Request accepted",
"pass-arguments-to-command": [
{
"source": "payload",
"name": "data.target_path"
},
{
"source": "payload",
"name": "data.media_info.size"
}
],
"trigger-rule":{
"match": {
"type": "value",
"value": "transfer.finished",
"parameter": {
"source": "payload",
"name": "type"
}
}
}
}
]