已支持馒头,有什么问题在这里反馈
-
这里有一些不明白的,就是cookie+User-Agent,是原先的逻辑。
-
如果cookie换成令牌,也需要User-Agent嘛?
- 这里有一些不明白的,就是cookie+User-Agent,是原先的逻辑。
- 如果cookie换成令牌,也需要User-Agent嘛?
带了令牌是不需要User-Agent的,但是为了不必要的麻烦,最好带上
这是馒头的站点数据无法获取的报错吗?
实际已经正确添加了,可以搜索资源
<html>
<body>
<!--StartFragment-->
2024/04/02 17:14:38 | stdout | 2024-04-02 17:14:38,069 ERROR: 【Sites】站点 m-team 获取流量数据失败:'NoneType' object has no attribute 'update'
-- | -- | --
2024/04/02 17:14:38 | stdout |
2024/04/02 17:14:38 | stdout |
2024/04/02 17:14:38 | stdout | AttributeError: 'NoneType' object has no attribute 'update'
2024/04/02 17:14:38 | stdout | site_headers.update({'User-Agent': ua})
2024/04/02 17:14:38 | stdout | File "/nas-tools/app/sites/site_userinfo.py", line 83, in build
2024/04/02 17:14:38 | stdout | site_user_info = self.build(url=site_url,
2024/04/02 17:14:38 | stdout | File "/nas-tools/app/sites/site_userinfo.py", line 180, in __refresh_site_data
2024/04/02 17:14:38 | stdout | Traceback (most recent call last):
2024/04/02 17:14:38 | stdout | Callstack:
2024/04/02 17:14:38 | stdout | Exception: 'NoneType' object has no attribute 'update'
<!--EndFragment-->
</body>
</html>
这个地方应该是有个小BUG,问了一下AI
报错信息显示,在尝试更新一个站点的流量数据时,程序遇到了一个AttributeError,具体来说是'str' object has no attribute 'update'。这个错误表明,在期望对一个字典对象调用update方法时,实际上却操作了一个字符串对象。
错误发生在site_headers.update({'User-Agent': ua})这一行,意味着site_headers在这个上下文中是一个字符串,而不是预期的字典。
<html> <body> <!--StartFragment--> 2024/04/02 17:14:38 | stdout | 2024-04-02 17:14:38,069 ERROR: 【Sites】站点 m-team 获取流量数据失败:'NoneType' object has no attribute 'update' -- | -- | -- 2024/04/02 17:14:38 | stdout | 2024/04/02 17:14:38 | stdout | 2024/04/02 17:14:38 | stdout | AttributeError: 'NoneType' object has no attribute 'update' 2024/04/02 17:14:38 | stdout | site_headers.update({'User-Agent': ua}) 2024/04/02 17:14:38 | stdout | File "/nas-tools/app/sites/site_userinfo.py", line 83, in build 2024/04/02 17:14:38 | stdout | site_user_info = self.build(url=site_url, 2024/04/02 17:14:38 | stdout | File "/nas-tools/app/sites/site_userinfo.py", line 180, in __refresh_site_data 2024/04/02 17:14:38 | stdout | Traceback (most recent call last): 2024/04/02 17:14:38 | stdout | Callstack: 2024/04/02 17:14:38 | stdout | Exception: 'NoneType' object has no attribute 'update' <!--EndFragment--> </body> </html>这个地方应该是有个小BUG,问了一下AI
# ... 省略其他代码 ... # 在调用 update 方法之前,确保 site_headers 是一个字典 if not isinstance(site_headers, dict): site_headers = {} # 现在可以安全地调用 update 方法了 site_headers.update({'User-Agent': ua}) # ... 省略其他代码 ...
我处理下
<html> <body> <!--StartFragment--> 2024/04/02 17:14:38 | stdout | 2024-04-02 17:14:38,069 ERROR: 【Sites】站点 m-team 获取流量数据失败:'NoneType' object has no attribute 'update' -- | -- | -- 2024/04/02 17:14:38 | stdout | 2024/04/02 17:14:38 | stdout | 2024/04/02 17:14:38 | stdout | AttributeError: 'NoneType' object has no attribute 'update' 2024/04/02 17:14:38 | stdout | site_headers.update({'User-Agent': ua}) 2024/04/02 17:14:38 | stdout | File "/nas-tools/app/sites/site_userinfo.py", line 83, in build 2024/04/02 17:14:38 | stdout | site_user_info = self.build(url=site_url, 2024/04/02 17:14:38 | stdout | File "/nas-tools/app/sites/site_userinfo.py", line 180, in __refresh_site_data 2024/04/02 17:14:38 | stdout | Traceback (most recent call last): 2024/04/02 17:14:38 | stdout | Callstack: 2024/04/02 17:14:38 | stdout | Exception: 'NoneType' object has no attribute 'update' <!--EndFragment--> </body> </html>这个地方应该是有个小BUG,问了一下AI
# ... 省略其他代码 ... # 在调用 update 方法之前,确保 site_headers 是一个字典 if not isinstance(site_headers, dict): site_headers = {} # 现在可以安全地调用 update 方法了 site_headers.update({'User-Agent': ua}) # ... 省略其他代码 ...我处理下
这个问题修复了
好了,现在就剩下刷流是不是有点问题
<html>
<body>
<!--StartFragment-->
2024/04/02 20:31:43 | stdout | 2024-04-02 20:31:43,133 INFO: 【Brush】任务 123 本次添加了 0 个下载
-- | -- | --
2024/04/02 20:31:38 | stdout |
2024/04/02 20:31:38 | stdout |
2024/04/02 20:31:38 | stdout | TypeError: argument of type 'NoneType' is not iterable
2024/04/02 20:31:38 | stdout | if 'm-team' in media_info.page_url and media_info.enclosure is None:
2024/04/02 20:31:38 | stdout | File "/nas-tools/app/downloader/downloader.py", line 324, in download
2024/04/02 20:31:38 | stdout | _, download_id, retmsg = self.downloader.download(
2024/04/02 20:31:38 | stdout | File "/nas-tools/app/brushtask.py", line 622, in __download_torrent
2024/04/02 20:31:38 | stdout | if self.__download_torrent(taskinfo=taskinfo,
2024/04/02 20:31:38 | stdout | File "/nas-tools/app/brushtask.py", line 271, in check_task_rss
2024/04/02 20:31:38 | stdout | Traceback (most recent call last):
2024/04/02 20:31:38 | stdout | Callstack:
2024/04/02 20:31:38 | stdout | Exception: argument of type 'NoneType' is not iterable
2024/04/02 20:31:38 | stdout |
2024/04/02 20:31:38 | stdout | 2024-04-02 20:31:38,733 INFO: 处理事件:download.add - [<function Webhook.send at 0x7f902b095cf0>]
<!--EndFragment-->
</body>
</html>
好了,现在就剩下刷流是不是有点问题
<html> <body> <!--StartFragment--> 2024/04/02 20:31:43 | stdout | 2024-04-02 20:31:43,133 INFO: 【Brush】任务 123 本次添加了 0 个下载 -- | -- | -- 2024/04/02 20:31:38 | stdout | 2024/04/02 20:31:38 | stdout | 2024/04/02 20:31:38 | stdout | TypeError: argument of type 'NoneType' is not iterable 2024/04/02 20:31:38 | stdout | if 'm-team' in media_info.page_url and media_info.enclosure is None: 2024/04/02 20:31:38 | stdout | File "/nas-tools/app/downloader/downloader.py", line 324, in download 2024/04/02 20:31:38 | stdout | _, download_id, retmsg = self.downloader.download( 2024/04/02 20:31:38 | stdout | File "/nas-tools/app/brushtask.py", line 622, in __download_torrent 2024/04/02 20:31:38 | stdout | if self.__download_torrent(taskinfo=taskinfo, 2024/04/02 20:31:38 | stdout | File "/nas-tools/app/brushtask.py", line 271, in check_task_rss 2024/04/02 20:31:38 | stdout | Traceback (most recent call last): 2024/04/02 20:31:38 | stdout | Callstack: 2024/04/02 20:31:38 | stdout | Exception: argument of type 'NoneType' is not iterable 2024/04/02 20:31:38 | stdout | 2024/04/02 20:31:38 | stdout | 2024-04-02 20:31:38,733 INFO: 处理事件:download.add - [<function Webhook.send at 0x7f902b095cf0>] <!--EndFragment--> </body> </html>
这个应该之前就修复了
好了,现在就剩下刷流是不是有点问题
<html> <body> <!--StartFragment--> 2024/04/02 20:31:43 | stdout | 2024-04-02 20:31:43,133 INFO: 【Brush】任务 123 本次添加了 0 个下载 -- | -- | -- 2024/04/02 20:31:38 | stdout | 2024/04/02 20:31:38 | stdout | 2024/04/02 20:31:38 | stdout | TypeError: argument of type 'NoneType' is not iterable 2024/04/02 20:31:38 | stdout | if 'm-team' in media_info.page_url and media_info.enclosure is None: 2024/04/02 20:31:38 | stdout | File "/nas-tools/app/downloader/downloader.py", line 324, in download 2024/04/02 20:31:38 | stdout | _, download_id, retmsg = self.downloader.download( 2024/04/02 20:31:38 | stdout | File "/nas-tools/app/brushtask.py", line 622, in __download_torrent 2024/04/02 20:31:38 | stdout | if self.__download_torrent(taskinfo=taskinfo, 2024/04/02 20:31:38 | stdout | File "/nas-tools/app/brushtask.py", line 271, in check_task_rss 2024/04/02 20:31:38 | stdout | Traceback (most recent call last): 2024/04/02 20:31:38 | stdout | Callstack: 2024/04/02 20:31:38 | stdout | Exception: argument of type 'NoneType' is not iterable 2024/04/02 20:31:38 | stdout | 2024/04/02 20:31:38 | stdout | 2024-04-02 20:31:38,733 INFO: 处理事件:download.add - [<function Webhook.send at 0x7f902b095cf0>] <!--EndFragment--> </body> </html>这个应该之前就修复了
可以了,可以了,完美!
/
大佬,馒头配置好了,站点检测是正常的,也可以获取种子了,但是签到报405,这个是配错了吗
/
大佬,馒头配置好了,站点检测是正常的,也可以获取种子了,但是签到报405,这个是配错了吗
看下配置
目前的配置如上
![]()
![]()
![]()
目前的配置如上
去掉后面的网址后面的index
大佬,只输入令牌该如何配置啊。刚看了一下馒头最新安全设定,二级验证好像必须开启,要么为密码+动态码,要么为密码+邮箱,这样录入cookie进去登不上。 cookie空着测试站点直接提示未配置站点cookie,请求头参数输入{"x-api-key": "馒头存取令牌"}保存退出后再次点维护直接没东西了,版本 v3.2.3 7e226da。
带上请求头参数就行,cookie 不用,其他问题已经修复了
一直进不去,cup一直拉满
![]()
一直进不去,cup一直拉满
给我看下完整的日志
024-04-03 22:02:47 | stderr | from app.brushtask import BrushTask -- | -- | -- 2024-04-03 22:02:47 | stderr | File "/nas-tools/app/brushtask.py", line 12, in
![]()
一直进不去,杯一直拉满
给我看完整的日志
用绿联的docker和ssh安装都一样,,用SSH安装旧版在升级,找不到刷流这个功能了
![]()
一直进不去,杯一直拉满
给我看完整的日志
用绿联的docker和ssh安装都一样,,用SSH安装旧版在升级,找不到刷流这个功能了
刷流这个功能是对pt站注册满30天的用户提供的,我在考虑要不要去掉这个限制
我还没有正常登入PT账号。
我还没有正常登入PT账号。
那需要你登下pt账号
我还没有正常登入PT账号。
那需要你登下pt账号
麒麟站不支持,能修复下么,www.hdkyl.in
我还没有正常登入PT账号。
那需要你登下pt账号
麒麟站不支持,能修复下么,www.hdkyl.in
我没这个站点,要修复的话,可以协助一下,明天我建个 tg 群吧
我还没有正常登入PT账号。
那需要你登下pt账号
麒麟站不支持,能修复下么,www.hdkyl.in
我没这个站点,要修复的话,可以协助一下,明天我建个 tg 你留个邮箱,我发你邀请
你留个邮箱,我发你邀请
已发。还有站点不行,到时候后,有邀请,我发你
ok 这个明天我就先处理了 https://www.okpt.net/ 这个站点已发 需要预注册账号你的邮箱前面的linyuan213 这个临时邀请7天及时注册
我安装过一个版本,检测免费到期,下载速度降低1kb 希望能加入


大佬,馒头配置好了,站点检测是正常的,也可以获取种子了,但是签到报405,这个是配错了吗
目前的配置如上
一直进不去,cup一直拉满