jerrymakesjelly / autoremove-torrents Goto Github PK
View Code? Open in Web Editor NEWAutomatically remove torrents according to your strategies.
Home Page: https://pypi.org/project/autoremove-torrents/
License: MIT License
Automatically remove torrents according to your strategies.
Home Page: https://pypi.org/project/autoremove-torrents/
License: MIT License
This PR is just a temporary fix for me and those who were waiting for your offical fix 😄 .
As I am new to programing, I learned your code carefully (I haven't updated to v1.4.7 yet). Here are my a few confusions:
and
It seems that the function delete_torrent_and_data doesn't need a return
?
And for V2 api, you used GET for delete_torrent, but POST for delete_torrent_and_data.
Does the command/delete still work for webapi v2.4.0. https://github.com/qbittorrent/qBittorrent/wiki/Web-API-Documentation#delete-torrents
May I know why?
Any hint about above questions is very appreciated.
Again, thank you for your amazing work and continuous contriution.
Originally posted by @colingpt in #51 (comment)
Hi, just like the tile, maybe one old torrent is in activity and one other older torrent is not in activity anymore, so is better to remove the old torrent that is no on activity.
What do you think?
在用AMT时,有时自动把有上传和下载的活跃的种子都删除了,而不活动的却留下了,希望大神能抽空开发一下
git pull
python3 setup.py install
?
Traceback (most recent call last):
File "main.py", line 7, in
from autoremove import AutoRemover
File "/root/autoremove-torrents/autoremove.py", line 8, in
from client.qbittorrent import qBittorrent
File "/root/autoremove-torrents/client/qbittorrent.py", line 3, in
import requests
ModuleNotFoundError: No module named 'requests'
小白一个,不知道是不是哪里没设置对,帮忙看一下。
环境是debian8,python3.4,使用的pip安装
完整日志如下:
Sat, 10 Nov 2018 19:11:06 autoremovetorrents.main INFO: Auto Remove Torrents 1.2.4
Sat, 10 Nov 2018 19:11:06 autoremovetorrents.main INFO: Loading configurations...
Sat, 10 Nov 2018 19:11:06 autoremovetorrents.main INFO: Found 1 task(s) in the file.
Sat, 10 Nov 2018 19:11:06 autoremovetorrents.task INFO: Logging in...
Sat, 10 Nov 2018 19:11:06 autoremovetorrents.task INFO: Login successfully. The client is Transmission 2.93 (0).
Sat, 10 Nov 2018 19:11:06 autoremovetorrents.task INFO: Getting all the torrents...
Sat, 10 Nov 2018 19:11:06 autoremovetorrents.task INFO: Found 4 seed(s) in the client.
Sat, 10 Nov 2018 19:11:06 autoremovetorrents.strategy INFO: Running strategy trackers...
Sat, 10 Nov 2018 19:11:06 autoremovetorrents.strategy INFO: Total: 4 seed(s). 0 seed(s) can be removed.
Sat, 10 Nov 2018 19:11:06 autoremovetorrents.main ERROR: TypeError: argument of type 'int' is not iterable
Sat, 10 Nov 2018 19:11:06 autoremovetorrents.main ERROR: Task my_task fails.
求解决办法。
你好,谢谢给我们提供了这么好的工具
能否提供如下功能
1.如果种子上传速度为0(或低于KB/S),且持续1小时(或小时),则删除种子和数据。
2.如果硬盘总空间小于**GiB,则执行上述过程。
谢谢!
1,希望能增加 if 判断 ,可以在删除条件或者过滤器中,或者两个都有;
这样能选择更多更灵活的种子;
2、删除条件希望不是满足任意之一就删除;而是增加 与或非 3个逻辑判断;
删除条件就更能满足大家的多种删除需求;
3、删除条件中增加过去一段时间的有无上传量;无量的比有量的应该删除,量少比量多的该删除。
这个条件可以避免误杀,正在上传的种子;而过去一段时间内正在上传的正是刷上传量的绝佳好种子。
最后问下,怎么在与config.yml同级的文件夹下做个log,把每次执行的结果都保留下来?
Originally posted by @Se7enMuting in #5 (comment)
I'm getting login failure eventhough I'm using correct login info. My config have worked before. Login in via web browser works fine.
Fri, 18 Jan 2019 18:42:14 autoremovetorrents.main INFO: Auto Remove Torrents 1.2.5
Fri, 18 Jan 2019 18:42:14 autoremovetorrents.main INFO: Loading configurations...
Fri, 18 Jan 2019 18:42:14 autoremovetorrents.main INFO: Found 1 task(s) in the file.
Fri, 18 Jan 2019 18:42:14 autoremovetorrents.task INFO: Running task 'my_task'...
Fri, 18 Jan 2019 18:42:14 autoremovetorrents.task INFO: Logging in...
Fri, 18 Jan 2019 18:42:14 autoremovetorrents.main ERROR: autoremovetorrents.exception.loginfailure.LoginFailure: The server returned HTTP 404.
Fri, 18 Jan 2019 18:42:14 autoremovetorrents.main ERROR: Task my_task fails.
报错:
D:>autoremove-torrents --conf=d:/autoremove-torrents/config.yml
Mon, 09 Sep 2019 10:20:14 autoremovetorrents.main INFO: Auto Remove Torrents 1.4.5
Mon, 09 Sep 2019 10:20:14 autoremovetorrents.main INFO: Loading configurations...
Mon, 09 Sep 2019 10:20:14 autoremovetorrents.main ERROR: in "d:/autoremove-torrents/config.yml", line 2, column 9
Mon, 09 Sep 2019 10:20:14 autoremovetorrents.main CRITICAL: An error occured. If you think this is a bug or need help, you can submit an issue.
配置文件:
my_task: m-team
client: utorrent
host: http://127.0.0.1:8080
username:
password:
strategies:
strategy1: m-team
categories: mtm
remove: create_time > 7776000
delete_data: true
具体配置文件如下:
task1: client: qbittorrent host: http://127.0.0.1:2010 username: aaaa password: aaaaaa strategies: strategy_mteaaa: trackers: mteaaa.me ratio: 3.0 seed_size: limit: 5200 action: remove-old-seeds strategy_hdskyaaa: trackers: hdskyaaa.me seed_size: limit: 1000 action: remove-old-seeds delete_data: true
trackers是一个列表,所以应该写成
trackers: - mteaaa.me
和
trackers: - hdskyaaa.me
多谢解答,另外种子数量多的时候,经常卡死,能看下如何提高遍历效率吗
卡死的时候程序运行到哪个阶段?是获取种子阶段还是运行策略阶段?
主要是两种情况卡死,一种是login时卡着不动,一个是login成功后,获取种子阶段
我之前设置的是10分钟运行一次,没想到过了一段时间系统都卡的不行,autoremove的进程大概有四五百个,只是偶尔能成功完成一次执行。与之对比的是同期flexget 能够正常login 添加下载任务。
Originally posted by @monokoo in #13 (comment)
1.4.3已更新,感谢支持
Originally posted by @jerrymakesjelly in #29 (comment)
感谢大佬百忙之中抽出时间调试更新支持py2.7,我试了下V1.4.3,结果有点小问题,如下:
[root@phicomm-n1:/]# /opt/bin/autoremove-torrents --view
Mon, 20 May 2019 23:55:36 autoremovetorrents.main INFO: Auto Remove Torrents 1.4.3
Mon, 20 May 2019 23:55:36 autoremovetorrents.main INFO: Loading configurations...
Mon, 20 May 2019 23:55:36 autoremovetorrents.main INFO: Found 1 task(s) in the file.
Mon, 20 May 2019 23:55:36 autoremovetorrents.task INFO: Running task 'my_task'...
Mon, 20 May 2019 23:55:36 autoremovetorrents.task INFO: Logging in...
Mon, 20 May 2019 23:55:36 autoremovetorrents.task INFO: Login successfully. The client is qBittorrent v4.1.5.
Mon, 20 May 2019 23:55:36 autoremovetorrents.task INFO: Getting all the torrents...
Mon, 20 May 2019 23:55:36 autoremovetorrents.task INFO: Found 0 torrent(s) in the client.
Mon, 20 May 2019 23:55:36 autoremovetorrents.strategy INFO: Running strategy s1...
Mon, 20 May 2019 23:55:36 autoremovetorrents.main ERROR: AttributeError: 'set' object has no attribute 'sort'
Mon, 20 May 2019 23:55:36 autoremovetorrents.main ERROR: Task my_task fails.
我去搜索了下这个AttributeError,说是可能是返回字符串没有成为列表啥的,就报错了,大佬您有空看看吧,我对这个还是太小白了。。。
我配置文件如下:
my_task:
client: utorrent
host: http://127.0.0.1:8080
username: admin
password:
strategies:
m-team:
categories:
- mtm
create_time: 7776000
delete_data: true
执行结果如下:
Fri, 20 Sep 2019 10:00:57 autoremovetorrents.main INFO: Auto Remove Torrents 1.4.5
Fri, 20 Sep 2019 10:00:57 autoremovetorrents.main INFO: Loading configurations...
Fri, 20 Sep 2019 10:00:57 autoremovetorrents.main INFO: Found 1 task(s) in the file.
Fri, 20 Sep 2019 10:00:57 autoremovetorrents.task INFO: Running task 'my_task'...
Fri, 20 Sep 2019 10:00:57 autoremovetorrents.task INFO: Logging in...
Fri, 20 Sep 2019 10:00:57 autoremovetorrents.task INFO: Login successfully. The client is uTorrent (bulid 45311).
Fri, 20 Sep 2019 10:00:58 autoremovetorrents.task INFO: Getting all the torrents...
Fri, 20 Sep 2019 10:00:59 autoremovetorrents.task INFO: Please wait...We have found 164 torrent(s).
Fri, 20 Sep 2019 10:01:00 autoremovetorrents.task INFO: Please wait...We have found 372 torrent(s).
Fri, 20 Sep 2019 10:01:01 autoremovetorrents.task INFO: Please wait...We have found 574 torrent(s).
Fri, 20 Sep 2019 10:01:01 autoremovetorrents.task INFO: Found 692 torrent(s) in the client.
Fri, 20 Sep 2019 10:01:01 autoremovetorrents.strategy INFO: Running strategy m-team...
Fri, 20 Sep 2019 10:01:01 autoremovetorrents.strategy INFO: Total: 0 torrent(s). 0 torrent(s) can be removed.
可是明明任务列表里面是有创建时间4个月的任务的
希望增加“磁盘剩余空间”小于某个值时,删除“最后活动”最大值的条件。
qb中两个数值都有。感觉这一个条件就够用了呢。
config.yml 配置如下,有缩进的,issue里不知道怎么显示缩进
my_task:
client: transmission
host: http://127.0.0.1:9091
username: *
password: *
strategies:
my_strategy:
all_trackers: true
seed_size:
limit: 600
action: remove-old-seeds
delete_data: true
ssh输出结果如下:
[root@ns517928 ~]# /usr/bin/autoremove-torrents --conf=/home/autoremove-torrents/config.yml
Fri, 17 Aug 2018 18:30:08 autoremovetorrents.main INFO: Auto Remove Torrents 1.2.4
Fri, 17 Aug 2018 18:30:08 autoremovetorrents.main INFO: Loading configurations...
Fri, 17 Aug 2018 18:30:08 autoremovetorrents.main ERROR: in "/home/autoremove-torrents/config.yml", line 12, column 3
Fri, 17 Aug 2018 18:30:08 autoremovetorrents.main CRITICAL: An error occured. Please contact the administrator for more information.
改成如下就OK:
my_task:
client: transmission
host: http://127.0.0.1:9091
username: *
password: *
strategies:
my_strategy:
all_trackers: true
seeding_time: 604800
delete_data: true
求教seed_size和子参数应该怎么写,wiki里也没有例子~~
定义两个策略,跑脚本发现,只有第一个策略生效,第二个策略不生效,并且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.才发现作者是我邮校友,顺祝考研成功
用了下参数remove-old-seeds,这个应该是按照创建时间来计算的吧?但是有的种子下载时间会很长,我希望能否再添加一对类似“remove-old-seeds”和“remove-new-seeds”的参数,但是是以完成时间来排序计算的,这样可以避免出现刚下载完,或甚至没有下载完就被删除的情况。
作者您好:
当“StalledUpload”作为筛选条件时会发生这样的问题:当上一个策咯执行有种子被删除时,由于删除活动占用了硬盘读取,导致本来有上传速度的种子暂时没有上传速度,于是触发这一条件,发生连环删除。希望作者可以修复这个问题,比如在一个策略执行后等待1分钟才能执行下一个策略。
Hi, is possible to support new api from version 4.2?
More here
https://github.com/qbittorrent/qBittorrent/wiki/Web-API-Documentation#get-torrent-list
命令:
autoremove-torrents --view --conf=/root/autoremove-torrents/config.yml
终端输出:
Fri, 13 Dec 2019 02:20:34 main.py[line:44] INFO Auto Remove Torrents 1.4.6
Fri, 13 Dec 2019 02:20:34 main.py[line:46] INFO Loading configurations...
Fri, 13 Dec 2019 02:20:34 main.py[line:49] INFO Found 1 task(s) in the file.
Fri, 13 Dec 2019 02:20:34 task.py[line:115] INFO Running task 'ttg'...
Fri, 13 Dec 2019 02:20:34 task.py[line:75] INFO Logging in...
Fri, 13 Dec 2019 02:20:34 task.py[line:80] INFO Login successfully. The client is qBittorrent v4.1.7.
Fri, 13 Dec 2019 02:20:34 task.py[line:84] INFO Getting all the torrents...
Fri, 13 Dec 2019 02:20:35 task.py[line:94] INFO Found 24 torrent(s) in the client.
Fri, 13 Dec 2019 02:20:35 strategy.py[line:82] INFO Running strategy ttg...
Fri, 13 Dec 2019 02:20:35 main.py[line:57] ERROR TypeError: unhashable type: 'slice'
Fri, 13 Dec 2019 02:20:35 main.py[line:58] ERROR Task ttg fails.
Fri, 13 Dec 2019 02:20:35 main.py[line:59] DEBUG Exception Logged
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/autoremovetorrents/main.py", line 55, in pre_processor
Task(task_name, result[task_name], not view_mode).execute()
File "/usr/local/lib/python3.7/site-packages/autoremovetorrents/task.py", line 118, in execute
self._apply_strategies()
File "/usr/local/lib/python3.7/site-packages/autoremovetorrents/task.py", line 100, in _apply_strategies
strategy.execute(self._torrents)
File "/usr/local/lib/python3.7/site-packages/autoremovetorrents/strategy.py", line 87, in execute
self._apply_conditions()
File "/usr/local/lib/python3.7/site-packages/autoremovetorrents/strategy.py", line 75, in _apply_conditions
cond.apply(self.remain_list)
File "/usr/local/lib/python3.7/site-packages/autoremovetorrents/conditionparser.py", line 92, in apply
self.parser.parse(self._expression)
File "/usr/local/lib/python3.7/site-packages/ply/yacc.py", line 333, in parse
return self.parseopt_notrack(input, lexer, debug, tracking, tokenfunc)
File "/usr/local/lib/python3.7/site-packages/ply/yacc.py", line 1026, in parseopt_notrack
lexer.input(input)
File "/usr/local/lib/python3.7/site-packages/ply/lex.py", line 253, in input
c = s[:1]
TypeError: unhashable type: 'slice'
配置如下:
ttg:
client: qbittorrent
host: http://127.0.0.1:2017
username: user
password: admin
strategies:
ttg:
categories:
- ttg
status:
- stalledUpload
remove:
maximum_number:
limit: 1
action:
- remove-old-seeds
- remove-big-seeds
delete_data: true
请教下何处出错的呢?
希望增加 当前上传量/种子体积的删除条件 (这么复读应该就好了吧
什么时候更新啊,心心念的自定义删除条件
希望尽快增加对deluge的支持,我的系统是用群晖DS3617,群晖套件中心里面的deluge是需要Python2.7,能将下个版本同时支持Python2.7和Python3.5吗?
在小钢炮里试了下,前面安装报错:TypeError: 'encoding' is an invalid keyword argument for this function
可以解决,
但是测试运行状态的时候会报错:ImportError: No module named parse
大佬请帮忙解决,谢谢!
您好,linux下art已经成为必装插件了。现在想在win10下自动运行,但总是设置不好,特此求教。
在计划任务,操作,启动程序下,填写c:\users\myusername\autoremove-torrents.exe后,运行失败,提示“不是有效的win32程序”,在cmd或者powershell的相同目录下直接输入autoremove-torrent回车,可以运行成功。
请问如何设置?非常感谢!
更正,不知道怎么搞的。。。以前可以在cmd下运行的,现在只能在pwoershell下运行了。。。按照wiki指导的删除生成的文件,重装,还是不行。现在cmd下运行提示:
C:\Users\Admin>autoremove-torrents
(弹出对话框:此应用无法在此系统下运行)
Access is denied.
如果cmd下用powershell运行则提示如下:
C:\Users\Admin>powershell C:\Users\Admin\autoremove-torrents
Program 'autoremove-torrents.exe' failed to run: The specified executable is not a valid application for this OS platfo
rm.At line:1 char:1
+ C:\Users\Admin\autoremove-torrents
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~.
At line:1 char:1
+ C:\Users\Admin\autoremove-torrents
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ResourceUnavailable: (:) [], ApplicationFailedException
+ FullyQualifiedErrorId : NativeCommandFailed
powershell下运行则提示成功:
PS C:\Users\Admin> autoremove-torrents
Sun, 13 Jan 2019 17:26:39 autoremovetorrents.autoremove INFO: Loading configurations...
Sun, 13 Jan 2019 17:26:39 autoremovetorrents.autoremove INFO: Found 1 task(s) in the file.
Sun, 13 Jan 2019 17:26:39 autoremovetorrents.autoremove INFO: my_task is running.
Sun, 13 Jan 2019 17:26:39 autoremovetorrents.autoremove INFO: Logging in...
Sun, 13 Jan 2019 17:26:39 autoremovetorrents.autoremove INFO: Login successfully. The client is qBittorrent v4.1.5.
Sun, 13 Jan 2019 17:26:39 autoremovetorrents.autoremove INFO: Getting all the torrents...
Sun, 13 Jan 2019 17:26:39 autoremovetorrents.autoremove INFO: Found 5 seed(s) in the client.
Sun, 13 Jan 2019 17:26:39 autoremovetorrents.autoremove INFO: Processing strategy s1...
Sun, 13 Jan 2019 17:26:39 autoremovetorrents.autoremove INFO: Total: 5 seed(s). 0 seed(s) can be removed.
还请指导如何设置计划任务啊。。。
这个删除的时候是连种子带文件一起删除的,还是只删除种子不清理文件?
root@debian:~/autoremove-torrents# autoremove-torrents --view --conf=/root/autoremove-torrents/config.yml
Sat, 16 Nov 2019 14:00:58 autoremovetorrents.main INFO: Auto Remove Torrents 1.4.6
Sat, 16 Nov 2019 14:00:58 autoremovetorrents.main INFO: Loading configurations...
Sat, 16 Nov 2019 14:00:58 autoremovetorrents.main INFO: Found 1 task(s) in the file.
Sat, 16 Nov 2019 14:00:58 autoremovetorrents.task INFO: Running task 'my_task'...
Sat, 16 Nov 2019 14:00:58 autoremovetorrents.task INFO: Logging in...
Sat, 16 Nov 2019 14:00:58 autoremovetorrents.task INFO: Login successfully. The client is qBittorrent v3.3.7.
Sat, 16 Nov 2019 14:00:58 autoremovetorrents.task INFO: Getting all the torrents...
Sat, 16 Nov 2019 14:00:59 autoremovetorrents.task INFO: Please wait...We have found 2 torrent(s).
Sat, 16 Nov 2019 14:01:00 autoremovetorrents.main ERROR: requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
Sat, 16 Nov 2019 14:01:00 autoremovetorrents.main ERROR: Task my_task fails.
配置文件如下:
my_task:
client: qbittorrent
host: http://127.0.0.1:8080
username: admin
password: *****
strategies:
my_strategy:
ratio: 1
creat_time: 108000
seeding_time: 86400
seed_size:
limitd: 700
action: remove-old-seeds
delete_data: true
root@Ubuntu-1804-bionic-64-minimal ~/autoremove-torrents # autoremove-torrents
Sat, 11 May 2019 17:46:15 autoremovetorrents.main INFO: Auto Remove Torrents 1.4.1
Sat, 11 May 2019 17:46:15 autoremovetorrents.main INFO: Loading configurations...
Sat, 11 May 2019 17:46:15 autoremovetorrents.main INFO: Found 1 task(s) in the file.
Sat, 11 May 2019 17:46:15 autoremovetorrents.task INFO: Running task 'my_task'...
Sat, 11 May 2019 17:46:15 autoremovetorrents.task INFO: Logging in...
Sat, 11 May 2019 17:46:15 autoremovetorrents.task INFO: Login successfully. The client is qBittorrent v4.1.5.
Sat, 11 May 2019 17:46:15 autoremovetorrents.task INFO: Getting all the torrents...
Sat, 11 May 2019 17:46:15 autoremovetorrents.task INFO: Found 71 torrent(s) in the client.
Sat, 11 May 2019 17:46:15 autoremovetorrents.strategy INFO: Running strategy my_strategy...
WARNING: Couldn't open 'parser.out'. [Errno 20] Not a directory: '/usr/local/lib/python3.6/dist-packages/autoremove_torrents-1.4.1-py3.6.egg/autoremovetorrents/parser.out'
Generating LALR tables
WARNING: 4 shift/reduce conflicts
WARNING: Couldn't create 'autoremovetorrents.parsetab'. [Errno 20] Not a directory: '/usr/local/lib/python3.6/dist-packages/autoremove_torrents-1.4.1-py3.6.egg/autoremovetorrents/parsetab.py'
Sat, 11 May 2019 17:46:15 autoremovetorrents.strategy INFO: Total: 50 torrent(s). 0 torrent(s) can be removed.
通过git安装,警告不影响使用,想请教这是python版本导致的问题吗?
ubuntu 18.04 64
ERROR: Could not find a version that satisfies the requirement psutil (from autoremove-torrents==1.4.9) (from versions: none)
ERROR: No matching distribution found for psutil (from autoremove-torrents==1.4.9)
用的qbittorrent,因为自动删种前没重新汇报导致少了很多上传量。。
增加了seed_size:
条件后报错,但种子和内容确实被删除了
# A task block
my_task: # Part 1: Task Name
# Part 2: Login Information
client: qbittorrent
host: http://127.0.0.1:xxxx
username: xxx
password: xxx
# Part 3: Strategies Block (Remove Conditions)
strategies:
# Part I: Strategy Name
strategy1:
# Part II: Filters
all_categories: true
# Part III: Remove Condition
seeding_time: 86400
strategy2:
all_categories: true
seed_size:
limit: 1000
action: remove-old-seeds
# Part 4: Decide whether to remove and delete data (optional)
delete_data: true
# Add more tasks here...
Fri, 21 Dec 2018 15:38:22 autoremovetorrents.task INFO: The torrent [\u706b\u738b\u4e4b\u7834\u6653\u4e4b\u6218].The.King.of.Blaze.2018.Complete.WEB-DL.1080p.H264.AAC-CMCTV and its data have been removed.
--- Logging error ---
Traceback (most recent call last):
File "/usr/lib/python3.5/logging/__init__.py", line 982, in emit
stream.write(msg)
UnicodeEncodeError: 'ascii' codec can't encode characters in position 62-68: ordinal not in range(128)
Call stack:
File "/usr/local/bin/autoremove-torrents", line 11, in <module>
load_entry_point('autoremove-torrents==1.2.4', 'console_scripts', 'autoremove-torrents')()
File "/usr/local/lib/python3.5/dist-packages/autoremove_torrents-1.2.4-py3.5.egg/autoremovetorrents/main.py", line 62, in main
pre_processor(sys.argv[1:])
File "/usr/local/lib/python3.5/dist-packages/autoremove_torrents-1.2.4-py3.5.egg/autoremovetorrents/main.py", line 49, in pre_processor
Task(task_name, result[task_name], not view_mode).execute()
File "/usr/local/lib/python3.5/dist-packages/autoremove_torrents-1.2.4-py3.5.egg/autoremovetorrents/task.py", line 119, in execute
self._remove_torrents()
File "/usr/local/lib/python3.5/dist-packages/autoremove_torrents-1.2.4-py3.5.egg/autoremovetorrents/task.py", line 108, in _remove_torrents
self._logger.info('The torrent %s and its data have been removed.', torrent.name)
Message: 'The torrent %s and its data have been removed.'
Arguments: ('[\u706b\u738b\u4e4b\u7834\u6653\u4e4b\u6218].The.King.of.Blaze.2018.Complete.WEB-DL.1080p.H264.AAC-CMCTV',)
1、增加“最后活动时间”作为删除依据,与当前时间比对,取差值(未活动时长)。将未活动时长与seed_time或ratio取交集。增加此删除依据,优先删除最近无活动的种子,释放空间,并且避免误删利于上传量增长的种子。
2、增加“文件大小”作为删除依据,可参考flexget的content_size设置。小于min_size或大于max_size都删除。
3、过滤器中,可以设置目录,只删除指定目录的种子。或参考flexget中的path_by_space:参数,自动扫描剩余空间较小的目录。
4、增加if判断条件,防止误删种子。
由于有些客户端可以不预先分配空间,所以当做种体积达到限制时可能实际上还有很多剩余空间
root@nodeovh1:~# /usr/local/bin/autoremove-torrents --view --conf=/data/autoremove-torrents/config.yml [1566/1566]
Mon, 15 Apr 2019 16:17:47 autoremovetorrents.main INFO: Auto Remove Torrents 1.2.5
Mon, 15 Apr 2019 16:17:47 autoremovetorrents.main INFO: Loading configurations...
Mon, 15 Apr 2019 16:17:47 autoremovetorrents.main INFO: Found 1 task(s) in the file.
Mon, 15 Apr 2019 16:17:47 autoremovetorrents.task INFO: Running task 'task'...
Mon, 15 Apr 2019 16:17:47 autoremovetorrents.task INFO: Logging in...
Mon, 15 Apr 2019 16:17:47 autoremovetorrents.task INFO: Login successfully. The client is qBittorrent v4.1.5.
Mon, 15 Apr 2019 16:17:47 autoremovetorrents.task INFO: Getting all the torrents...
Mon, 15 Apr 2019 16:17:48 autoremovetorrents.task INFO: Please wait...We have found 49 seed(s).
Mon, 15 Apr 2019 16:17:49 autoremovetorrents.task INFO: Please wait...We have found 106 seed(s).
Mon, 15 Apr 2019 16:17:50 autoremovetorrents.task INFO: Please wait...We have found 164 seed(s).
Mon, 15 Apr 2019 16:17:51 autoremovetorrents.task INFO: Please wait...We have found 222 seed(s).
Mon, 15 Apr 2019 16:17:52 autoremovetorrents.task INFO: Please wait...We have found 279 seed(s).
Mon, 15 Apr 2019 16:17:53 autoremovetorrents.task INFO: Please wait...We have found 335 seed(s).
Mon, 15 Apr 2019 16:17:54 autoremovetorrents.task INFO: Please wait...We have found 391 seed(s).
Mon, 15 Apr 2019 16:17:55 autoremovetorrents.task INFO: Please wait...We have found 447 seed(s).
Mon, 15 Apr 2019 16:17:56 autoremovetorrents.task INFO: Please wait...We have found 503 seed(s).
Mon, 15 Apr 2019 16:17:57 autoremovetorrents.task INFO: Please wait...We have found 560 seed(s).
Mon, 15 Apr 2019 16:17:58 autoremovetorrents.task INFO: Found 596 seed(s) in the client.
Mon, 15 Apr 2019 16:17:58 autoremovetorrents.strategy INFO: Running strategy open.cd...
Mon, 15 Apr 2019 16:17:58 autoremovetorrents.strategy INFO: Total: 408 seed(s). 341 seed(s) can be removed.
Mon, 15 Apr 2019 16:17:58 autoremovetorrents.strategy INFO: To be deleted:
Mon, 15 Apr 2019 16:17:58 autoremovetorrents.strategy INFO: 群星 热门抖音60首 4CD 2018 - WAV 整轨
Size:2.41GiB Ratio:2.879 Total Uploaded:6.93GiB Seeding Time:26d 21:44:27 Category:OPENCD
Create Time:2019-03-19 17:28:03
......
感谢大佬修复及时,初步试了几次暂时没什么问题;
PS:
INFO: Getting all the torrents...
INFO: Please wait...We have found 49 seed(s).
INFO: Found 596 seed(s) in the client.
这里的seed(s) 推荐换用 torrent 比较好吧?
Originally posted by @wxlg1117 in #22 (comment)
以前用的是transmission,找了一个脚本根据磁盘空间自动删种 http://xiaofd.win/transmission-auto-remove.html,磁盘利用率比较高。
现在用的是qbittorrent,根据你的分享设置了根据种子大小删种,可是如果同时添加多个种子且添加的种子容量比较大的话会在第一时间删掉许多做种和正在上传的种子,空出一大块空间,而不是随着下载逐渐删除。
希望能加入这个功能,非常感谢。
Hi, I just found this and I think is very good, I made a little configuration to start but I can't find a way to configure categories and trackers to work together, this's my configuration:
my_task:
client: qbittorrent
host: http://127.0.0.1:8081
strategies:
Torrenting:
categories:
- FreeLeech
trackers:
- shareisland.org
ratio: 1
seeding_time: 432000 # 5 days
# remove: seeding_time > 432000 or ratio > 1
delete_data: true
I've all freeleech torrent in one category and I want to filter only some tracker so I added this tracker but don't seem to work.
Here the full tracker url, directly from qbittorrent
http://shareisland.org:2710/MYAPIKEY/announce
What I do wrong?
J
有些网站是用seedbox后,ratio大于一定值就不计算流量,这时候不用管是uploading还是stalledUP可以直接删除,即使用你现在定义的TorrentStatus.Uploading,但是有些网站没有限制的话就得等种子从uploading到stalledUP的状态再删除,这样能获得更多的流量,你现在放在一起的话,我如果要删除一些没有H&R的种子,都要加上做种时间的条件,因为我不知道它到底是在uploading还是stalledUP,这样有些种子如果一个小时就进入stalledUP我还要等他好久(例如我条件设置2天)才能被删除,而有些过了2天也许还在uploading,分开就很简单,只要是stalledUP的直接删除。
我尝试过修改client/qbittorrent.py的判断和添加这2个status到torrentstatus.py,但是运行的时候提示WARNING: The status 'stalledup' does not exist, so it won't be used.
我不是很懂python,只是把downloading/uploading后面的or判断去掉,重新添加一行elif判断stalledDL/stalledUP,还是麻烦你了
或者把stalledUP or stalledDL定义为inactive(stalled),就像qbittorrent官方的web api里的filter,然后status可以使用交集,即uploading&inactive(stalled)
或者在remove的条件里设置stalleUP, 没有H&R的站点stalledUP就可以删除。有H&R的站点在用and 加个seeding time or ratio
简单来说,我的目的就是:
有限制seedbox ratio的站点:uploading or stalledUP的种子只要ratio超过网站的rules就删除
H&R:stalledUP并且ratio或者做种时间达到要求的删除
Non H&R:stalledUP直接删除
你好,
win10 python3.7.2 x64下 v1.10版本安装后,
运行返回如下:
C:\Users\Admin>autoremove-torrents
Tue, 08 Jan 2019 20:50:47 autoremovetorrents.autoremove INFO: Loading configurations...
Tue, 08 Jan 2019 20:50:47 autoremovetorrents.main ERROR: UnicodeDecodeError: 'gbk' codec can't decode byte 0x9a in position 206: illegal multibyte sequence
Tue, 08 Jan 2019 20:50:47 autoremovetorrents.main CRITICAL: An error occured. Please contact the administrator for more information.
请问怎搞?看到说明里的演示也是在win下进行的,求教。
系统: Ubuntu 16.04 x64
版本: 1.2.4
配置:
client: qbittorrent
host: http://127.0.0.1:X
username: X
password: X
strategies:
s1:
all_categories: true
seed_size:
limit: 1000
action: remove-old-seeds
delete_data: true
运行后输出日志:
x@pt:~$ autoremove-torrents --view
Fri, 28 Dec 2018 21:11:55 autoremovetorrents.main INFO: Auto Remove Torrents 1.2.4
Fri, 28 Dec 2018 21:11:55 autoremovetorrents.main INFO: Loading configurations...
Fri, 28 Dec 2018 21:11:55 autoremovetorrents.main INFO: Found 1 task(s) in the file.
Fri, 28 Dec 2018 21:11:55 autoremovetorrents.task INFO: Logging in...
Fri, 28 Dec 2018 21:11:55 autoremovetorrents.task INFO: Login successfully. The client is qBittorrent v4.1.5.
Fri, 28 Dec 2018 21:11:55 autoremovetorrents.task INFO: Getting all the torrents...
Fri, 28 Dec 2018 21:11:55 autoremovetorrents.task INFO: Found 1 seed(s) in the client.
Fri, 28 Dec 2018 21:11:55 autoremovetorrents.strategy INFO: Running strategy s1...
Fri, 28 Dec 2018 21:11:55 autoremovetorrents.strategy INFO: Total: 4 seed(s). 0 seed(s) can be removed.
此时不会删除种子,但如果有许多种子存在的时候会出现问题,例如:
Fri, 28 Dec 2018 20:50:16 main.py[line:38] INFO Auto Remove Torrents 1.2.4
Fri, 28 Dec 2018 20:50:16 main.py[line:40] INFO Loading configurations...
Fri, 28 Dec 2018 20:50:16 main.py[line:43] INFO Found 1 task(s) in the file.
Fri, 28 Dec 2018 20:50:16 task.py[line:74] INFO Logging in...
Fri, 28 Dec 2018 20:50:17 task.py[line:79] INFO Login successfully. The client is qBittorrent v4.1.5.
Fri, 28 Dec 2018 20:50:17 task.py[line:83] INFO Getting all the torrents...
Fri, 28 Dec 2018 20:50:17 task.py[line:93] INFO Found 16 seed(s) in the client.
Fri, 28 Dec 2018 20:50:17 strategy.py[line:74] INFO Running strategy rm-old...
Fri, 28 Dec 2018 20:50:17 strategy.py[line:83] INFO Total: 64 seed(s). 18 seed(s) can be removed.
Fri, 28 Dec 2018 20:50:17 strategy.py[line:85] INFO To be deleted:
Fri, 28 Dec 2018 20:50:17 strategy.py[line:87] INFO 我与你的光年距离2.Long.for.You.II.2018.V2.WEB-DL.1080p.H264.AAC-HDSWEB
Size:12.78GiB Ratio:0.795 Total Uploaded:10.17GiB Seeding Time:0d 09:56:48 Category:HDSky
Create Time:2018-12-28 09:53:28
Fri, 28 Dec 2018 20:50:17 strategy.py[line:87] INFO 我与你的光年距离2.Long.for.You.II.2018.V2.WEB-DL.1080p.H264.AAC-HDSWEB
Size:12.78GiB Ratio:0.795 Total Uploaded:10.17GiB Seeding Time:0d 09:56:48 Category:HDSky
Create Time:2018-12-28 09:53:28
Fri, 28 Dec 2018 20:50:17 strategy.py[line:87] INFO Los.olvidados.2017.Blu-ray.Remux.1080p.AVC.DTS-HD.MA.5.1-OurBits
Size:9.86GiB Ratio:0.306 Total Uploaded:2.89GiB Seeding Time:0d 07:42:53 Category:Ourbits
Create Time:2018-12-28 08:43:30
Fri, 28 Dec 2018 20:50:17 strategy.py[line:87] INFO Los.olvidados.2017.Blu-ray.Remux.1080p.AVC.DTS-HD.MA.5.1-OurBits
Size:9.86GiB Ratio:0.306 Total Uploaded:2.89GiB Seeding Time:0d 07:42:53 Category:Ourbits
Create Time:2018-12-28 08:43:30
Fri, 28 Dec 2018 20:50:17 strategy.py[line:87] INFO Los.olvidados.2017.Blu-ray.Remux.1080p.AVC.DTS-HD.MA.5.1-OurBits
Size:9.86GiB Ratio:0.306 Total Uploaded:2.89GiB Seeding Time:0d 07:42:53 Category:Ourbits
Create Time:2018-12-28 08:43:30
Fri, 28 Dec 2018 20:50:17 strategy.py[line:87] INFO Los.olvidados.2017.Blu-ray.Remux.1080p.AVC.DTS-HD.MA.5.1-OurBits
Size:9.86GiB Ratio:0.306 Total Uploaded:2.89GiB Seeding Time:0d 07:42:53 Category:Ourbits
Create Time:2018-12-28 08:43:30
Fri, 28 Dec 2018 20:50:17 strategy.py[line:87] INFO Champion.2018.Blu-ray.Remux.1080p.AVC.DTS-HD.MA.5.1-OurBits
Size:26.95GiB Ratio:0.342 Total Uploaded:8.92GiB Seeding Time:0d 06:31:58 Category:Ourbits
Create Time:2018-12-28 08:33:28
Fri, 28 Dec 2018 20:50:17 strategy.py[line:87] INFO Champion.2018.Blu-ray.Remux.1080p.AVC.DTS-HD.MA.5.1-OurBits
Size:26.95GiB Ratio:0.342 Total Uploaded:8.92GiB Seeding Time:0d 06:31:58 Category:Ourbits
Create Time:2018-12-28 08:33:28
Fri, 28 Dec 2018 20:50:17 strategy.py[line:87] INFO Champion.2018.Blu-ray.Remux.1080p.AVC.DTS-HD.MA.5.1-OurBits
Size:26.95GiB Ratio:0.342 Total Uploaded:8.92GiB Seeding Time:0d 06:31:58 Category:Ourbits
Create Time:2018-12-28 08:33:28
Fri, 28 Dec 2018 20:50:17 strategy.py[line:87] INFO Champion.2018.Blu-ray.Remux.1080p.AVC.DTS-HD.MA.5.1-OurBits
Size:26.95GiB Ratio:0.342 Total Uploaded:8.92GiB Seeding Time:0d 06:31:58 Category:Ourbits
Create Time:2018-12-28 08:33:28
Fri, 28 Dec 2018 20:50:17 strategy.py[line:87] INFO The.Miseducation.of.Cameron.Post.2018.Blu-ray.Remux.1080p.AVC.DD.5.1-OurBits
Size:18.41GiB Ratio:0.575 Total Uploaded:10.21GiB Seeding Time:0d 07:02:40 Category:Ourbits
Create Time:2018-12-28 08:33:28
Fri, 28 Dec 2018 20:50:17 strategy.py[line:87] INFO The.Miseducation.of.Cameron.Post.2018.Blu-ray.Remux.1080p.AVC.DD.5.1-OurBits
Size:18.41GiB Ratio:0.575 Total Uploaded:10.21GiB Seeding Time:0d 07:02:40 Category:Ourbits
Create Time:2018-12-28 08:33:28
Fri, 28 Dec 2018 20:50:17 strategy.py[line:87] INFO The.Miseducation.of.Cameron.Post.2018.Blu-ray.Remux.1080p.AVC.DD.5.1-OurBits
Size:18.41GiB Ratio:0.575 Total Uploaded:10.21GiB Seeding Time:0d 07:02:40 Category:Ourbits
Create Time:2018-12-28 08:33:28
Fri, 28 Dec 2018 20:50:17 strategy.py[line:87] INFO The.Miseducation.of.Cameron.Post.2018.Blu-ray.Remux.1080p.AVC.DD.5.1-OurBits
Size:18.41GiB Ratio:0.575 Total Uploaded:10.21GiB Seeding Time:0d 07:02:40 Category:Ourbits
Create Time:2018-12-28 08:33:28
Fri, 28 Dec 2018 20:50:17 strategy.py[line:87] INFO 勇往直前恋上你.Shall.We.Fall.in.Love.2018.WEB-DL.1080p.H265.AAC-HDSWEB
Size:11.71GiB Ratio:0.693 Total Uploaded:8.13GiB Seeding Time:0d 11:11:38 Category:HDSky
Create Time:2018-12-28 08:03:23
Fri, 28 Dec 2018 20:50:17 strategy.py[line:87] INFO 勇往直前恋上你.Shall.We.Fall.in.Love.2018.WEB-DL.1080p.H265.AAC-HDSWEB
Size:11.71GiB Ratio:0.693 Total Uploaded:8.13GiB Seeding Time:0d 11:11:38 Category:HDSky
Create Time:2018-12-28 08:03:23
Fri, 28 Dec 2018 20:50:17 strategy.py[line:87] INFO 勇往直前恋上你.Shall.We.Fall.in.Love.2018.WEB-DL.1080p.H265.AAC-HDSWEB
Size:11.71GiB Ratio:0.693 Total Uploaded:8.13GiB Seeding Time:0d 11:11:38 Category:HDSky
Create Time:2018-12-28 08:03:23
Fri, 28 Dec 2018 20:50:17 strategy.py[line:87] INFO 勇往直前恋上你.Shall.We.Fall.in.Love.2018.WEB-DL.1080p.H265.AAC-HDSWEB
Size:11.71GiB Ratio:0.693 Total Uploaded:8.13GiB Seeding Time:0d 11:11:38 Category:HDSky
Create Time:2018-12-28 08:03:23
Fri, 28 Dec 2018 20:50:17 task.py[line:108] INFO The torrent 我与你的光年距离2.Long.for.You.II.2018.V2.WEB-DL.1080p.H264.AAC-HDSWEB and its data have been removed.
Fri, 28 Dec 2018 20:50:17 task.py[line:108] INFO The torrent 我与你的光年距离2.Long.for.You.II.2018.V2.WEB-DL.1080p.H264.AAC-HDSWEB and its data have been removed.
Fri, 28 Dec 2018 20:50:18 task.py[line:108] INFO The torrent Los.olvidados.2017.Blu-ray.Remux.1080p.AVC.DTS-HD.MA.5.1-OurBits and its data have been removed.
Fri, 28 Dec 2018 20:50:19 task.py[line:108] INFO The torrent Los.olvidados.2017.Blu-ray.Remux.1080p.AVC.DTS-HD.MA.5.1-OurBits and its data have been removed.
Fri, 28 Dec 2018 20:50:19 task.py[line:108] INFO The torrent Los.olvidados.2017.Blu-ray.Remux.1080p.AVC.DTS-HD.MA.5.1-OurBits and its data have been removed.
Fri, 28 Dec 2018 20:50:19 task.py[line:108] INFO The torrent Los.olvidados.2017.Blu-ray.Remux.1080p.AVC.DTS-HD.MA.5.1-OurBits and its data have been removed.
Fri, 28 Dec 2018 20:50:19 task.py[line:108] INFO The torrent Champion.2018.Blu-ray.Remux.1080p.AVC.DTS-HD.MA.5.1-OurBits and its data have been removed.
Fri, 28 Dec 2018 20:50:19 task.py[line:108] INFO The torrent Champion.2018.Blu-ray.Remux.1080p.AVC.DTS-HD.MA.5.1-OurBits and its data have been removed.
Fri, 28 Dec 2018 20:50:19 task.py[line:108] INFO The torrent Champion.2018.Blu-ray.Remux.1080p.AVC.DTS-HD.MA.5.1-OurBits and its data have been removed.
Fri, 28 Dec 2018 20:50:19 task.py[line:108] INFO The torrent Champion.2018.Blu-ray.Remux.1080p.AVC.DTS-HD.MA.5.1-OurBits and its data have been removed.
Fri, 28 Dec 2018 20:50:19 task.py[line:108] INFO The torrent The.Miseducation.of.Cameron.Post.2018.Blu-ray.Remux.1080p.AVC.DD.5.1-OurBits and its data have been removed.
Fri, 28 Dec 2018 20:50:19 task.py[line:108] INFO The torrent The.Miseducation.of.Cameron.Post.2018.Blu-ray.Remux.1080p.AVC.DD.5.1-OurBits and its data have been removed.
Fri, 28 Dec 2018 20:50:19 task.py[line:108] INFO The torrent The.Miseducation.of.Cameron.Post.2018.Blu-ray.Remux.1080p.AVC.DD.5.1-OurBits and its data have been removed.
Fri, 28 Dec 2018 20:50:19 task.py[line:108] INFO The torrent The.Miseducation.of.Cameron.Post.2018.Blu-ray.Remux.1080p.AVC.DD.5.1-OurBits and its data have been removed.
Fri, 28 Dec 2018 20:50:19 task.py[line:108] INFO The torrent 勇往直前恋上你.Shall.We.Fall.in.Love.2018.WEB-DL.1080p.H265.AAC-HDSWEB and its data have been removed.
Fri, 28 Dec 2018 20:50:19 task.py[line:108] INFO The torrent 勇往直前恋上你.Shall.We.Fall.in.Love.2018.WEB-DL.1080p.H265.AAC-HDSWEB and its data have been removed.
Fri, 28 Dec 2018 20:50:19 task.py[line:108] INFO The torrent 勇往直前恋上你.Shall.We.Fall.in.Love.2018.WEB-DL.1080p.H265.AAC-HDSWEB and its data have been removed.
Fri, 28 Dec 2018 20:50:19 task.py[line:108] INFO The torrent 勇往直前恋上你.Shall.We.Fall.in.Love.2018.WEB-DL.1080p.H265.AAC-HDSWEB and its data have been removed.
实际上只有16个种子存在,占用空间不到300G,但策略上认为有64个种子,应该也同时将统计的种子体积计算了4倍,并移除了多个种子?
记得使用之前版本的时候好像没有这个问题的。。。
请修复,感谢!
考研一切顺利吧?哈哈
Hi!
Wonderful sw... could you add the ability to append the log file, instead of creating one file per day?!
Thanks
plz support rTorrent
1,超过一定时间没有任何上传的不活跃种子,按不活跃时长排序,先删不活跃时间长的。
2,剩下的活跃种子,按 (做种者数/下载者数) 排序,先删比值大的,也就是相对做种者多的种子。
3,按一定时间内的平均上传速度,从小到大删除
这是在贴吧看到的想法,对于想抢上传刷数据而不是保种刷魔力的人来说非常实用,我只关心种子是否有上传,上传速度如何,大概还能上传多少。而大小,分享率,做种时间我根本一点也不在乎。
I don't know if this is how it is supposed to work or not, but right now if a torrent reaches the ratio limit and is paused/completed it will not be removed by autoremove-torrents. Is there any setting to remove the completed torrents? I was hoping to set autoremove-torrents to run once a day and remove all the completed torrents from qbittorrent. Thanks for any help.
在powershell中运行autoremove-torrents --view命令报错,如下:
PS D:\Program Files\autoremove-torrents-1.4.8> autoremove-torrents --view --conf=D:/Program Files/autoremove-torrents-1. 4.8/config.yml Traceback (most recent call last): File "C:\Users\Ray\AppData\Local\Programs\Python\Python37\Scripts\autoremove-torrents-script.py", line 6, in <module> from pkg_resources import load_entry_point File "C:\Users\Ray\AppData\Local\Programs\Python\Python37\lib\site-packages\pkg_resources\__init__.py", line 3250, in <module> @_call_aside File "C:\Users\Ray\AppData\Local\Programs\Python\Python37\lib\site-packages\pkg_resources\__init__.py", line 3234, in _call_aside f(*args, **kwargs) File "C:\Users\Ray\AppData\Local\Programs\Python\Python37\lib\site-packages\pkg_resources\__init__.py", line 3263, in _initialize_master_working_set working_set = WorkingSet._build_master() File "C:\Users\Ray\AppData\Local\Programs\Python\Python37\lib\site-packages\pkg_resources\__init__.py", line 583, in _build_master ws.require(__requires__) File "C:\Users\Ray\AppData\Local\Programs\Python\Python37\lib\site-packages\pkg_resources\__init__.py", line 900, in require needed = self.resolve(parse_requirements(requirements)) File "C:\Users\Ray\AppData\Local\Programs\Python\Python37\lib\site-packages\pkg_resources\__init__.py", line 786, in resolve raise DistributionNotFound(req, requirers) pkg_resources.DistributionNotFound: The 'idna<2.9,>=2.5' distribution was not found and is required by requests
The new version of Transmission RPC Protocol adds label attribute. We need to support that.
https://github.com/transmission/transmission/blob/master/extras/rpc-spec.txt
隔了这么久来看,添加了好多新的功能;也调整了好一些原来的东西;希望能在介绍中,添加一个包含所有语法的例子和注释,这样不管是对于新人还是老人来说,只要根据你最新的例子来修改即可,而且添加这样的一个例子对你来说几乎是分分钟的事情,对于不熟悉的朋友,可能就是好几天都不一定能完全解决的事情。万分感谢!
C:\Users\xxx>autoremove-torrents --conf=D:\autoremove-torrents\config.yml
Sat, 11 Jan 2020 14:48:53 autoremovetorrents.main INFO: Auto Remove Torrents 1.4.8
Sat, 11 Jan 2020 14:48:53 autoremovetorrents.main INFO: Loading configurations...
Sat, 11 Jan 2020 14:48:53 autoremovetorrents.main INFO: Found 1 task(s) in the file.
Sat, 11 Jan 2020 14:48:53 autoremovetorrents.task INFO: Running task 'my_task'...
Sat, 11 Jan 2020 14:48:53 autoremovetorrents.task INFO: Logging in...
Sat, 11 Jan 2020 14:48:53 autoremovetorrents.main ERROR: autoremovetorrents.exception.remotefailure.RemoteFailure: The server responsed 404.
Sat, 11 Jan 2020 14:48:53 autoremovetorrents.main ERROR: Task my_task fails.
配置文件如下
my_task:
client: utorrent
host: http://127.0.0.1:10080/gui/
username: admin
password: adminadmin
strategies:
strategy1:
all_categories: true
seed_size:
limit: 400
action: remove-old-seeds
delete_data: true
utorrent版本是3.5.5 (build 45505)
很感谢老哥为pt用户做出的贡献!请教个问题,我ubuntu18.04,同时安装配置了qb4.1.5-nox,flexget和你的art,参考的下面两个链接做的配置,但很频繁得出现qb的webui崩溃无法打开的情况,在链接里面看到说flexget和你的art同时允许会导致崩溃,另外新版有统计bug,不知老哥有空是否方便修复一下呢?另外请教下我现在qb的webui频繁崩溃有没有什么解决方法啊?
https://a2z.ink/qbittorrent-flexget-autoremove-torrents/
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.