flexget 是扩展 transmission rss订阅下载 的一个强大的工具
yum install -y gcc make zlib zlib-devel readline-devel sqlite sqlite-devel openssl-devel mysql-devel gd-devel openjpeg-devel
mkdir /home/transmission/Torrents
下载并安装 pip
wget https://bootstrap.pypa.io/get-pip.py --no-check-certificate
python get-pip.py
virtualenv
pip install virtualenv
添加并安装 flexget
virtualenv /root/flexget
/root/flexget/bin/pip install flexget
安装 transmissionrpc 插件(实现transmissionrpc 帐号认证)
/root/flexget/bin/pip install transmissionrpc
添加FlexGet配置文件
vi /root/flexget/config.yml
flexget 配置文件 部分示例(以config.yml命名)
tasks:
pt_name:
rss: .... # pt rss 订阅地址
download: /data/torrent # flexget 下载种子存放位置
transmission:
host: xxx.xxx.xxx.xxx # transmission 主机ip
port: xxxx # transmission 端口
username: xxxx # transmission 用户名
password: xxxx # transmission 密码
regexp:
accept:
- Colony\.S\d{1,2}E\d+\.720p\.HDTV\.x264-FLEET
# Colony.S01E01.720p.HDTV.x264-FLEET
# 这个为 殖民地 美剧 的flexget 正则表达式
# https://flexget.com/Plugins/regexp
# flexget 官方配置介绍
这个是我自己的配置,可以参考下
tasks:
ttg:
rss:
download: /home/transmission/Torrents
transmission:
host:
port:
username:
password:
regexp:
accept:
- WiKi
- DIY
from: title
content_size:
min: 128
max: 20480
cmct:
rss:
accept_all: yes
download: /home/transmission/Torrents
transmission:
host:
port:
username:
password:
clean_transmission:
host:
port:
username:
password:
finished_for: 36 hours
tracker: cmct
delete_files: Yes
content_size:
min: 128
max: 20480
运行 flexget
/root/flexget/bin/flexget -c /root/flexget/config.yml execute
cron任务
crontab -e
添加以下任务实现每五分钟执行一次检查
*/5 * * * * /root/flexget/bin/flexget -c /root/flexget/config.yml execute
正文完
要饭中,多少给点吧(支付宝)
发表至: 服务器
2018-07-17