-
Notifications
You must be signed in to change notification settings - Fork 0
/
example.yml
45 lines (44 loc) · 1.34 KB
/
example.yml
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
# Where to download the rss from
channel: http://showrss.info/rss.php?user_id=9876543210&hd=1&proper=1
# The local id of this channel. It is used to generate the name of the "seen" file.
id: showrss
# variables that can be referred to later.
vars:
- name: cmd
value: /usr/bin/transmission-remote
- name: mailto
value: [email protected]
- name: downloaddir
value: /data/downloads
- name: mailbody
value: |
From: RSS-Actor
Subject: Queued "%title%" for download
Queued "%title%".
match:
# The dpath of the variable we want to check
- var: /title
# What to look in the title. More filtering is possible here too.
regexp: '.'
# Other variables that can be used
vars:
- name: url
dpath: /enclosure/url
- name: title
dpath: /title
# What to do if we have an unseen item
do:
# We just print this to the terminal
- action: print
print: "Downloading %title% (%url%)\n"
# Queue it for download
- action: exec
cmd: [ "%cmd%", "-w", "%downloaddir%", "-a", "%url%" ]
# Send a mail about it
- action: exec
cmd: "/bin/echo '%mailbody%' | /usr/sbin/dma %mailto%"
# This is to help figuring out which value is where
# - var: /title
# regexp: '.'
# do:
# - action: dump