Skip to content

qbittorrent_mod

IvonWei edited this page Jul 9, 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:
          check_reseed:
            - pt1
            - pt2
          delete_files: true
          keep_disk_space: 10
          dl_limit_on_succeeded: 8388608
          dl_limit_interval: 900
可用属性
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
dl_limit_interval integer 执行删除后 预计剩余磁盘空间 < keep_disk_space,将下载速度限制为 剩余磁盘空间/dl_limit_interval,用于保证时间内不会将磁盘用尽。单位:秒

修改

    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

恢复

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