来吧兄弟,一起玩一起讨论!
您需要 登录 才可以下载或查看,没有账号?注册
x
一、flexget的安装
1、打开套件中心,设置/试用版,勾选“是的,我想体验试用版“
2、社群里安装flexget,如果没有安装PHTHON2.7,安装过程中会自动安装PYTHON2.7
安装完成了,很简单的。
二、配置文件的编写
为了弄配置文件,我阅读了flexget官网的大量英文内容,对于已经毕业十多年的我,真有点吃力。下在从简单的开始,一步步完成配置文件。
配置文件就一个,/volume1/@appstore/flexget/var/config.yml,用WinSCP打开
1、最简单的配置文件,相当于编程里的hello world
tasks:
#任务名称,写上自己喜欢的名称,比上面的task:退两个空格,是两个空格,不是TAB
myCD:
#退2个空格,写上PT的rss地址
rss: https://opxn.xd/torrentrss.php?r ... amp;passkey=xxxxxxx
#我的rss是收藏夹,下载全部
accept_all: yes
transmission:
#transmission的IP,本机写localhost
host: localhost
port: 9091
#输入transmission的用户名
username: admin
#输入transmission的密码
password: xxxxxx
schedules:
#退2空格,横杠后面有1空格
- tasks: 'myCD'
interval:
#五分钟运行一次
minutes: 5
2、完善一下,用移动网PT的用户的福利来了,按照上面的配置,加入的种子的tracker是http://....,用移动网PT的都知道得改成https://.....
另外,transmission中指定下载的路径,指定带宽选先级
tasks:
myCD:
rss: https://opxn.xd/torrentrss.php?r ... amp;passkey=xxxxxxx
#移除tracker
remove_trackers:
#"opxn.xd"是上面rss种子的tracker中含有一部分内容,我的是https://tracker.opxn.xd/announce.php?passkey=xxxxxxxxxx
- opxn.xd
#添加新的tracker
add_trackers:
- https://tracker.opxn.xd/announce.php?passkey=xxxxxxxxxxxxxxxxxxx
accept_all: yes
transmission:
host: localhost
port: 9091
username: admin
password: xxxxxx
#指定下载路径
path: /volumeSATA1/rssOpxnxD
#指定带宽选先级,[-1,0,1]
bandwidthpriority: 1
schedules:
#退2空格,横杠后面有1空格
- tasks: 'myCD'
interval:
#五分钟运行一次
minutes: 5
3、加入另一个rss
tasks:
myCD:
rss: https://opxn.xd/torrentrss.php?r ... amp;passkey=xxxxxxx
remove_trackers:
- opxn.xd
add_trackers:
- https://tracker.opxn.xd/announce.php?passkey=xxxxxxxxxxxxxxxxxxx
accept_all: yes
transmission:
host: localhost
port: 9091
username: admin
password: xxxxxx
path: /volumeSATA1/rssOpxnxD
bandwidthpriority: 1
myMT:
rss: https://xxxxxxxxxxxxxxxxxx
accept_all: yes
transmission:
host: localhost
port: 9091
username: admin
password: xxxxxx
path: /volumeSATA1/rssMT
bandwidthpriority: 0
schedules:
#退2空格,横杠后面有1空格
- tasks: [myCD,myMT]
interval:
#五分钟运行一次
minutes: 5
4、利用模板,简化代码
templates:
#全局模板,写上这个后,不用每个task都写上accept_all: yes
global:
accept_all: yes
#transmission的通用模板
myTR:
transmission:
host: localhost
port: 9091
username: admin
password: xxxxx
tasks:
myCD:
rss: https://xxxxxxxxx
remove_trackers:
- opxn.xd
add_trackers:
- https://tracker.opxn.xd/announce.php?passkey=xxxxxxxxxxxxxxxxxxx
template:
- myTR
set:
path: /volumeSATA1/rssMT
bandwidthpriority: 1
myMT:
rss: https://tp.xxxxxxxxxxxxxxxxxxx
template:
- myTR
set:
path: /volumeSATA1/rssMT
schedules:
- tasks: [myCD,myMT]
interval:
minutes: 5
收工。
补充内容 (2016-8-21 16:48):
保存配置文件要用utf8编码
套套哥要加上verify_ssl_certificates: no这个属性才能下载 |