type
status
slug
date
summary
tags
category
password
icon
前言:
qbittorrent的”Run external program on torrent completion”功能可以实现下载完成后自动执行命令,借助这个我们可以在种子下载玩成之后执行命令或脚本来实现我们需要的功能
本文以”qbittorrent下载完成之后自动执行rclone脚本,上传到google_drive onedrive,上传完成后自动删种”为例
此方法不适用于docker安装的qbit,qbit在容器内无法执行容器外部的rclone暂时不知道解决方法 欢迎大家反馈
一、安装qbittorrent(以debian为例)
安装完成后通过 ip:8080 访问即可,默认用户名 密码分别为admin adminadmin
安装有很多方法,只不过我平常用这个
二、安装rclone并添加google_drive onedrive
你也可以添加其他存储方式,本文我以上传到google_drive onedrive演示
rclone安装以及添加google_drive onedrive可以看 这篇文章 或Google
三、自动上传并删种
查看rclone程序位置,并给予执行权限
最后在qbittorrent-options(setting)中勾选”Run external program on torrent completion”,并按照你自己的需求填写rclone命令
注意:
这里的 %D 是 Default Save Path 的值,如果 Default Save Path 路径末尾有
/
那么就是 /usr/bin/rclone move
"%D%N"
gd:qbit/"%N"
如果 Default Save Path 末尾没
/
那么就是 /usr/bin/rclone move
"%D/%N"
gd:qbit/"%N"
我apt安装qbit软件默认带
/
而且没法更改,如果其他安装方法 可能会不带 /