Skip to content

Instantly share code, notes, and snippets.

@wuming1456
Created Aug 11, 2020
Embed
What would you like to do?
variables: secrets.yml
web_server:
port: 3539
web_ui: yes
templates:
anchors:
_transmission-settings: &transmission-settings
host: "{? transmission.host ?}"
port: "{? transmission.port ?}"
username: "{? transmission.user ?}"
password: "{? transmission.pass ?}"
global:
download: /data/
tr:
transmission:
<<: *transmission-settings
path: /data/auto
tr-follow:
transmission:
<<: *transmission-settings
path: /data/电视剧
regexp:
accept:
- "龙岭迷窟|半泽直树":
set:
path: /data/电视剧
- "大理寺日志":
set:
path: /data/动漫
- "天气之子|姜子牙":
set:
path: /data/电影
tr-bookmark:
transmission:
<<: *transmission-settings
path: /data/Others
regexp:
accept:
- Movie:
set:
path: /data/电影
- "TV Shows|TV Series|Sports":
set:
path: "/data/电视剧"
- "Animations":
set:
path: /data/动漫
- "Music|MTV|MV":
set:
path: /data/Music
freespace:
free_space:
path: /data
space: 102400
tasks:
clean_tr1:
from_transmission:
<<: *transmission-settings
only_complete: yes
disable: [seen, seen_info_hash,download]
if:
- transmission_date_done < now - timedelta(days=21): accept
regexp:
reject_excluding:
- "/data/auto":
from: transmission_downloadDir
transmission:
<<: *transmission-settings
action: purge
auto:
rss:
url: https://bbbb/rss.php
all_entries: no
accept_all: yes
content_size:
min: 1000
max: 51200
template:
- tr
- freespace
bookmark:
rss:
url: https://aaaa/rss.php
all_entries: yes
verify_ssl_certificates: no
accept_all: yes
disable: retry_failed
template:
- tr-bookmark
- freespace
follow:
rss:
url: https://cccc/.rss.php
all_entries: no
accept_all: no
template:
- tr-follow
- freespace
schedules:
- tasks: [bookmark, auto, follow]
interval:
minutes: 10
- tasks: [clean_tr1]
interval:
hours: 12
transmission:
host: 127.0.0.1
port: 9091
pass: abcdefg
user: hijklmn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment