-
Notifications
You must be signed in to change notification settings - Fork 2
/
mikan-bangumi.yaml
95 lines (93 loc) · 2.76 KB
/
mikan-bangumi.yaml
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
#该项非必要,某些番会有登录才能访问页面的情况遇到请添加上,并在对应组件配置中使用
instances:
- name: mikan-client
props:
#登录mikan,开发者工具Cookie中的.AspNetCore.Identity.Application
token: xxxxx
- name: bgmtv-client
props:
# token生成地址https://next.bgm.tv/demo/access-token
token: xxxx
components:
source:
- name: mikan
type: rss
props:
url: https://mikanani.me/RSS/MyBangumi?token=
# mikan
- name: mikan
type: mikan
props:
url: https://mikanani.me/RSS/MyBangumi?token=
# 历史番剧
all-episode: true
# 推荐填上有些番剧要登陆才能番剧信息页面,否则有些番会无法正确重命名
client: mikan-client
downloader:
- name: qbittorrent
type: qbittorrent
props:
endpoint: http://192.168.1.219:10095
username: admin
password: 123456
variable-provider:
- name: mikan
type: mikan
props:
# 推荐填上有些番剧要登陆才能番剧信息页面,否则有些番会无法正确重命名
bgmtv-client: bgmtv-client
mikan-client: mikan-client
file-mover:
- name: qbittorrent
type: qbittorrent
# 完成后发送一个HTTP请求到指定url,如果没有可以去掉并且删除options中的process-listeners
process-listener:
- name: telegram-message-webhook
type: http
props:
url: "http://192.168.1.219:15678/webhook/telegram-notify?message=番剧 {summary}"
trigger:
- name: 20min
type: fixed
props:
interval: PT20M
on-start-run-tasks: true
processors:
- name: mikan-bangumi
triggers:
- fixed:20min
source: mikan
item-file-resolver: torrent
downloader: qbittorrent
mover: qbittorrent
save-path: /mnt/bangumi
tags: [ "新番" ]
options:
variable-providers:
- "mikan"
- "episode"
process-listeners:
- http:telegram-message-webhook
save-path-pattern: "{name}/Season {season}/"
filename-pattern: "{nameCn} - S{season}E{episode}"
rename-task-interval: PT2M
rename-times-threshold: 2
download-options:
category: Bangumi
tags:
- "mikan-bangumi"
item-expression-exclusions:
- "item.title.matches('720(?i)P|中文配音|CR |1280X720')"
file-expression-exclusions:
- "file.tags in ['image'] || file.extension in ['zip', 'rar']"
file-replacement-decider: anime
file-exists-detector: 'media-type'
file-taggers:
- "simple"
parallelism: 5
variable-process:
- input: name
chain: [ "season" ]
output:
key-mapping:
name: season