Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

有个bug,不知作者以及各位user遇到过没有,见内 #10

Closed
hushenshen opened this issue Oct 28, 2018 · 8 comments
Closed
Labels
bug Something isn't working

Comments

@hushenshen
Copy link

hushenshen commented Oct 28, 2018

定义两个策略,跑脚本发现,只有第一个策略生效,第二个策略不生效,并且log打印两遍

我的配置如下:

task_OB: 
  client: qbittorrent
  host: ******
  username: ****
  password: ******
  strategies:
    strategy_MT:
      trackers: https://tp.m-team.cc
      ratio: 1
      seeding_time: 180000
    strategy_OB:
      trackers: https://ourbits.club
      ratio: 1
      seed_size:
        limit: 1024
        action: remove-old-seeds
      create_time: 86400
      seeding_time: 7200    
  delete_data: true

LOG如下:

Sun, 28 Oct 2018 16:50:19 autoremovetorrents.main INFO: Auto Remove Torrents 1.2.4
Sun, 28 Oct 2018 16:50:19 autoremovetorrents.main INFO: Loading configurations...
Sun, 28 Oct 2018 16:50:19 autoremovetorrents.main INFO: Found 1 task(s) in the file.
Sun, 28 Oct 2018 16:50:19 autoremovetorrents.task INFO: Logging in...
Sun, 28 Oct 2018 16:50:19 autoremovetorrents.task INFO: Login successfully. The client is qBittorrent v4.1.1.
Sun, 28 Oct 2018 16:50:19 autoremovetorrents.task INFO: Getting all the torrents...
Sun, 28 Oct 2018 16:50:19 autoremovetorrents.task INFO: Found 6 seed(s) in the client.
Sun, 28 Oct 2018 16:50:19 autoremovetorrents.strategy INFO: Running strategy strategy_MT...
Sun, 28 Oct 2018 16:50:19 autoremovetorrents.strategy INFO: Total: 1 seed(s). 0 seed(s) can be removed.
Sun, 28 Oct 2018 16:50:19 autoremovetorrents.strategy INFO: Running strategy strategy_OB...
Sun, 28 Oct 2018 16:50:19 autoremovetorrents.strategy INFO: Running strategy strategy_OB...
Sun, 28 Oct 2018 16:50:19 autoremovetorrents.strategy INFO: Total: 0 seed(s). 0 seed(s) can be removed.
Sun, 28 Oct 2018 16:50:19 autoremovetorrents.strategy INFO: Total: 0 seed(s). 0 seed(s) can be removed.

事实上OB的种子有6个,一个满足删除条件,可脚本没有识别出来

PS.才发现作者是我邮校友,顺祝考研成功

@jerrymakesjelly
Copy link
Owner

trackers里的内容不用写套接字(http:// 或 https://),只写主机名即可。测试用例里的tracker都是只写主机名的,没有问题。文档里没有写清楚,我去更正一下。

log多次打印的bug我很早就解决了,可能忘记commit上来了,目前这个问题应该不大。 😿

@jerrymakesjelly
Copy link
Owner

事实上您的第一个策略也没有生效 😄

@0bo
Copy link

0bo commented Dec 28, 2018

trackers里的内容不用写套接字(http:// 或 https://),只写主机名即可。测试用例里的tracker都是只写主机名的,没有问题。文档里没有写清楚,我去更正一下。

log多次打印的bug我很早就解决了,可能忘记commit上来了,目前这个问题应该不大。 😿

看起来,打印两遍的bug解决了,现在打印4遍了,嘿嘿嘿 😄

@monokoo
Copy link

monokoo commented Jan 1, 2019

一个strategies里面多个strategy的话 后面的统计不到种子数

@jerrymakesjelly
Copy link
Owner

jerrymakesjelly commented Jan 9, 2019

我的 qBittorrent 4.1.5 没有出现统计不到种子数的问题

task1:
  client: qbittorrent
  host: ***
  username: ***
  password: ***
  strategies:
    my_strategy:
      ratio: 1
    your_strategy:
      ratio: 0.5

screenshot

@monokoo
Copy link

monokoo commented Jan 9, 2019

我的 qBittorrent 4.1.5 没有出现统计不到种子数的问题

task1:
  client: qbittorrent
  host: ***
  username: ***
  password: ***
  strategies:
    my_strategy:
      ratio: 1
    your_strategy:
      ratio: 0.5

screenshot

我的是一个task里面有两个不同pt站点的策略,这种情况下就统计不到。还有如果一个种子有多个tracker也会有统计错误,比如ipt的种子

@monokoo
Copy link

monokoo commented Jan 9, 2019

在PR里面也有提到这个问题
b3dbc1e

@jerrymakesjelly
Copy link
Owner

1.2.5已修复

@jerrymakesjelly jerrymakesjelly added the bug Something isn't working label Apr 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants