Skip to content

qbittorrent_mod

IvonWei edited this page Oct 24, 2020 · 27 revisions

qbittorrent_mod

基础

qbittorrent_mod:
  host: <qbittorrent web path>
  port: 443
  use_ssl: yes
  username: <username>
  password: <password>

添加

    qbittorrent_mod:
      action:
        add:
          reject_on_dl_limit: 8388608 
          reject_on_dl_speed: 6291456
          category: Rss
          autoTMM: true
可用属性
Property Type Description
reject_on_dl_limit integer|boolean 当前限速低于设定值时 拒绝新种子(设为 no 禁用) 。取值范围应在 reject_on_dl_speed 与 dl_limit_on_succeeded 之间,否则可能会因为磁盘空间不足的自动限速低于reject_on_dl_speed时,拒绝失败。单位:Byte
reject_on_dl_speed integer|boolean 当下载速度大于设定值时 拒绝新种子(设为 no 禁用) 。单位:Byte
savepath string Download folder
cookie string Cookie sent to download the .torrent file
category string Category for the torrent
skip_checking string Skip hash checking. Possible values are true, false (default)
paused string Add torrents in the paused state. Possible values are true, false (default)
root_folder string Create the root folder. Possible values are true, false, unset (default)
rename string Rename torrent
upLimit integer Set torrent upload speed limit. Unit in bytes/second
dlLimit integer Set torrent download speed limit. Unit in bytes/second
autoTMM bool Whether Automatic Torrent Management should be used
sequentialDownload string Enable sequential download. Possible values are true, false (default)
firstLastPiecePrio string Prioritize download first last piece. Possible values are true, false (default)

删除

    qbittorrent_mod:
      action:
        remove:
          keeper:
            check_reseed:
              - pt1
              - pt2
            delete_files: true
            keep_disk_space: 10
            alt_dl_limit_on_succeeded: 0
            alt_dl_limit_on_succeeded: 8388608
            dl_limit_interval: 900
          cleaner:
            delete_files: true
keeper 与 cleaner 区别:

keeper模式下 只要成功匹配,无论何时都会删除种子的所有辅种,并根据 delete_files 决定是否删除数据。会接管qBittorrent限速设置

cleaner模式下 只会删除匹配到的种子,就算 delete_files 为真,也只会在种子所有的辅种都满足删除条件时才会删除文件

一个任务只能使用一个模式

keeper可用属性
Property Type Description
check_reseed array|boolean no(默认):所有辅种中只要有一个满足删除条件,就全部删除
yes:所有辅种中只要有其中一个不满足条件则放弃删除
array:只检查匹配tracker的种子,全部满足就全部删除所有辅种
delete_files boolean 删种同时是否删除数据
keep_disk_space integer 磁盘剩余空间阈值,低于阈值才会执行删除 单位:GiB
dl_limit_on_succeeded integer 删除成功(预计剩余磁盘空间 > keep_disk_space )后,设置限速(0为不限速)。单位:Byte
alt_dl_limit_on_succeeded integer 删除成功(预计剩余磁盘空间 > keep_disk_space )后,设置备用限速(0为不限速)。单位:Byte
dl_limit_interval integer 执行删除后 预计剩余磁盘空间 < keep_disk_space,将下载速度限制为 剩余磁盘空间/dl_limit_interval,用于保证时间内不会将磁盘用尽。单位:秒
cleaner可用属性
Property Type Description
delete_files boolean 删种同时是否删除数据

修改

    qbittorrent_mod:
      action:
        modify:
          tag_by_tracker: yes
          replace_trackers:
            'http://tracker.pt1.com/announce.php?passkey=xxxxxxxxxxxxxx': 'https://tracker.pt1.com/announce.php?passkey=xxxxxxxxxxxxxx'
可用属性
Property Type Description
tag_by_tracker boolean 提取tracker主域名,为种子添加标签
replace_trackers map 替换tracker(value 为 False 时 则删除tracker)

恢复

    qbittorrent_mod:
      action:
        resume:
          recheck_torrents: true
可用属性
Property Type Description
recheck_torrents boolean 如果保存路径上没有种子在正常做种,则重新校验种子,用于检测辅种跳检,将种子还原成0进度状态

连接数管理

基于 当前连接数 + entry['step'] 设置最大连接数,最小不低于 min, 最大不高于 max,也许可以用来防止卡IO

    qbittorrent_mod:
      action:
        manage_conn:
          min: 100
          max: 2000
可用属性
Property Type Description
min integer 最小连接数
max integer 最大连接数

暂停

    qbittorrent_mod:
      action:
        pause: yes
可用属性
Property Type Description
pause boolean 暂停种子
Clone this wiki locally