|
40f4490b74
|
🔀 merge main
|
2024-10-31 00:50:20 +08:00 |
|
洛梧藤
|
77a4dcd70e
|
🐛 修复微博更换长内容接口 (#645)
|
2024-10-30 23:49:39 +08:00 |
|
|
e8f0d578e1
|
♻️ 将 Site 的元类从 RegistryMeta 改为 新建的 SiteMeta
|
2024-10-30 20:03:48 +08:00 |
|
|
074fe3ff58
|
♻️ _site_name 和 _default_cookie_cd 内置 CookieClientManager
|
2024-10-29 21:28:35 +08:00 |
|
|
c5dea7e252
|
♻️ 初步移除CookieSite
|
2024-10-29 21:12:50 +08:00 |
|
|
29c2eb456d
|
♻️ 更新部分方法使用 scheduler_dict 进行cookie操作
|
2024-10-29 12:24:31 +08:00 |
|
|
81e53419a3
|
♻️ 将 refresh_anonymous_cookie 改为内部方法, 同时外部使用 refresh_client 方法进行刷新匿名 cookie
|
2024-10-29 09:38:08 +08:00 |
|
|
6e53c6f4b2
|
🐛 优化对 bilibili cookie 的 mock
|
2024-10-28 22:48:11 +08:00 |
|
|
3a0f95b712
|
🐛 优化对 weibo get_cookie_name 的 mock
|
2024-10-28 22:47:31 +08:00 |
|
|
641cc44a12
|
🔀 merge
|
2024-10-28 22:07:20 +08:00 |
|
|
42cc56ac24
|
🐛 优化对 bilibili cookie 的 mock
|
2024-10-28 22:06:12 +08:00 |
|
|
438b23a0b9
|
🐛 从 Site 中移除 「无效的 Cookie」 文本
|
2024-10-28 12:44:51 +08:00 |
|
|
1a0eca4a38
|
✨ 更新默认UA为Windows平台 (#643)
|
2024-10-24 16:56:24 +08:00 |
|
|
d2c33feff8
|
✅ mock生成匿名Cookie的逻辑
|
2024-10-23 10:53:11 +08:00 |
|
|
2093622672
|
🐛 改改单测
|
2024-10-13 21:51:47 +08:00 |
|
|
b6ba904a68
|
🐛 又忘记改单测了(
|
2024-10-13 21:30:08 +08:00 |
|
|
1d1b9f6574
|
🐛 config 中添加 clear_db 方法,用于清空数据库内容;添加clear_db fixture,用于在单测前后清空数据库
|
2024-09-28 16:51:22 +08:00 |
|
|
f31a798326
|
✅ 修修单测
|
2024-09-27 00:45:45 +08:00 |
|
|
6cbc6f7d4d
|
🔀 merge
|
2024-09-19 10:00:34 +08:00 |
|
Azide
|
088e7a439f
|
✨ 新增可以在 fsm 抛出错误后重置 fsm 的装饰器工具
|
2024-09-17 22:59:09 +08:00 |
|
|
c784417ecc
|
✅ 初步实现删除cookie的单元测试
|
2024-09-13 20:01:54 +08:00 |
|
|
dd802a9c17
|
✅ 初步实现添加cookie的单元测试
|
2024-09-13 19:12:19 +08:00 |
|
|
2cfd58373f
|
✅ pytest db_config
|
2024-09-13 14:12:02 +08:00 |
|
|
4791fb69e0
|
♻️ 重构 get_cookie 方法
|
2024-09-13 11:34:45 +08:00 |
|
|
318ba8fb3c
|
🔀 merge
|
2024-09-09 18:41:01 +08:00 |
|
|
7c9e191f40
|
✨ 删除cookie 对话
|
2024-09-08 15:56:44 +08:00 |
|
|
0ce2893911
|
✨ 匿名cookie和用户cookie一起调度
|
2024-09-06 00:25:33 +08:00 |
|
|
d6205867b8
|
✨ 无权限用户尝试添加订阅时返回提示信息 (#617)
* ✨ 无权限用户尝试添加订阅时返回提示信息
* ✨ 添加no_permission_matcher相关的单元测试
* 🐛 优化无权限提示的排版
* 🐛 移除没有必要的命令
|
2024-09-01 22:32:47 +08:00 |
|
Azide
|
b8b49a5ce5
|
🐛 B站请求策略阶段行为优化 (#610)
* 🐛 调整ruff的pytest警告
* 🐛 调整导入关系警告
* 🐛 删除奇怪无用的赋值和取值逻辑
* ✅ 不同测试部分所用变量应加以区分
* 🐛 subs_io model添加默认值
* 🐛 修完所有的 ruff PT001 警告
* 🔧 按ruff建议修改ruff配置
warning: The top-level linter settings are deprecated in favour of their counterparts in the `lint` section. Please update the following options in `pyproject.toml`:
- 'ignore' -> 'lint.ignore'
- 'select' -> 'lint.select'
* 🔊 降低B站请求策略非Raise阶段API352的日志等级
* 🐛 Raise阶段应该 raise err
* 🔊 日志添加平台名
* 🐛 bzhanhan调度继续降低至60s
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
|
2024-09-01 22:30:02 +08:00 |
|
|
cf38500be7
|
🐛 Rss 不再删除格式化字符
|
2024-09-01 22:23:02 +08:00 |
|
uy_sun
|
60e6f05cf4
|
✅ fix tests
|
2024-08-30 10:26:22 +08:00 |
|
felinae98
|
8a21ca2a1c
|
🐛 forbid adding platform that needs browser in no-browser env
|
2024-08-30 10:26:22 +08:00 |
|
|
6f20dbf358
|
✨ 支持对话关联cookie到订阅目标
|
2024-08-26 17:32:36 +08:00 |
|
|
7913f7485a
|
✨ 添加cookie相关的数据库表
|
2024-08-22 20:55:39 +08:00 |
|
Azide
|
32e3bcc022
|
🐛 修正项目的代码警告 (#614)
* 🐛 调整ruff的pytest警告
* 🐛 调整导入关系警告
* 🐛 删除奇怪无用的赋值和取值逻辑
* ✅ 不同测试部分所用变量应加以区分
* 🐛 subs_io model添加默认值
* 🐛 修完所有的 ruff PT001 警告
* 🔧 按ruff建议修改ruff配置
warning: The top-level linter settings are deprecated in favour of their counterparts in the `lint` section. Please update the following options in `pyproject.toml`:
- 'ignore' -> 'lint.ignore'
- 'select' -> 'lint.select'
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
|
2024-08-17 18:24:20 +08:00 |
|
Azide
|
38f0edcd25
|
🐛 Bilibili调度新增回避策略 (#573)
* 🐛 将Bilibili的调度速度降低到60s
* ✨ 增加回避策略
* ✨ 降低轮询间隔,增加回避次数,抛出阶段随机刷新
* ♻️ 更清晰的调度逻辑实现
* 🐛 兼容3.10的NamedTuple多继承
* ♻️ 合并重复逻辑
* ♻️ ctx放入fsm
* 🐛 测试并调整逻辑
* 🐛 补全类型标注
* ♻️ 添加Condition和State.on_exit/on_enter,以实现自动状态切换
* ✅ 调整测试
* 🐛 私有化命名方法
* 🔊 调整补充日志
* 🐛 添加测试后清理
* ✏️ fix typing typo
|
2024-08-04 18:40:01 +08:00 |
|
Cateon Huo
|
9e5dcb3912
|
✨ 实现 Post.content 相关扩展协议 (#553)
* ✨ `post` 新增 `get_content()` 方法
* 🚨 make linter happy
* 💄 auto fix by pre-commit hooks
* 🐛 fix: 调整函数使用
* 💄 auto fix by pre-commit hooks
* ✨ 转用函数处理文本
* 💄 auto fix by pre-commit hooks
* 🔨 使用`Dict`存储`content_handlers`
* 💄 auto fix by pre-commit hooks
* 🎨 fix
* :arts: 简化函数使用
* 🐛 移除`Theme`的过时参数
* 🗑️ 复用 `self.plain_content`
* 💄 auto fix by pre-commit hooks
* ✨ 注册式装饰器写法
* 💄 auto fix by pre-commit hooks
* 🐛 fix
* 💄 auto fix by pre-commit hooks
* :feat: 通用纯文本处理函数
* 💄 auto fix by pre-commit hooks
* :downgrade: 复用`==`处理标题
* 🎨 简化(?)写法
* ✅ 测试修复
* ♻️ via ContentSupport extensions
* 🐛 fix test
* 💄 auto fix by pre-commit hooks
* 🐛 for clean text
* 🐛 fix
* 💄 auto fix by pre-commit hooks
* fix: for xml
* 💄 auto fix by pre-commit hooks
* chore: art
* 💄 auto fix by pre-commit hooks
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
|
2024-08-04 18:39:12 +08:00 |
|
felinae98
|
a12a92fca4
|
🐛 fix config alias err
|
2024-07-15 14:08:22 +08:00 |
|
Azide
|
e2a97a9e56
|
✨ 适配小刻食堂平台 (#379)
* 🐛 插入新的Schedulable时应传入use_batch参数
* ✨ 适配ceobecanteen平台
Co-authored-by: phidiaLam <2957035701@qq.com>
* ✨ ✨ 明日方舟公告与官网采用截图分享 (#480)
* ✨ 明日方舟公告与官网采用截图分享
* 💄 auto fix by pre-commit hooks
* 🐛 修复缺少的导入,优化逻辑
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Azide <rukuy@qq.com>
* 🐛 优化截图图片效果
* 🐛 修复错误将转发内图片视作头图的问题
* 🍱 使用正式 Bison Logo
* 💄 auto fix by pre-commit hooks
* 🐛 请求小刻API时不在headers里添加过多字段
* 🐛 get_comb_id方法删除无用的targets参数
* 💡 get_comb_id方法更新注释
* 🔥 移除发送部分的更改
* ✨ 在命名中明确表示cond_func意图
* ♻️ 拆分get_comb_id功能
* ♻️ 调整缓存逻辑
* ✨ 使用uri在theme中调用platform截图
* ♻️ 重构截图逻辑
* ✨ 添加模糊匹配提示
* ✨ 适配新版Site
* 💄 auto fix by pre-commit hooks
* 🐛 去掉不必要的排序
* 🐛 修正不应出现的驼峰变量名
* ♻️ 按review意见修改
* ♻️ 调整截图函数逻辑
* 🔊 调低日志等级
* ✏️ 修复一些拼写和格式
---------
Co-authored-by: phidiaLam <2957035701@qq.com>
Co-authored-by: 洛梧藤 <67498817+phidiaLam@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
|
2024-07-13 01:06:42 +08:00 |
|
|
4d4d1060de
|
🐛 查询订阅时提示不存在的平台 (#584)
* 🐛 查询订阅时提示不存在的平台 fix #515
* 💄 auto fix by pre-commit hooks
* 🐛 删除订阅时,获取详细信息跳过不存在的platform
* ✅ 添加对于不存在的平台的单元测试
* 🐛 删除订阅时跳过不存在的platform
* 💄 规范化订阅列表的输出
* 💄 规范化订阅列表的输出
* 💄 规范化订阅列表的输出
* 💄 规范化订阅列表的输出
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
|
2024-07-03 10:26:58 +08:00 |
|
Azide
|
b330644b39
|
✅ 使用 MockerFixture 限制测试时配置的变更范围 (#586)
|
2024-07-03 00:11:38 +08:00 |
|
Azide
|
af72b6c3d0
|
🐛 B站蹲饼修复 (#525)
* ✨ 使用新接口
* ♻️ 调整刷新逻辑
* 🐛 调整刷新逻辑
* ♻️ 将单个哔哩哔哩文件拆开
* 🐛 修修补补边界情况
* ✨ 添加UID:xxx匹配
* ✅ 调整测试中的导入
* ✅ 调整测试的断言
* 🐛 添加unicode字符的escape
* ✨ 不再主动刷新cookies
* 🔀 适配新版Site
* 🐛 解析live_rcmd中的json string
* 🚨 make ruff happy
* 🐛 调整并测试bilibili retry函数
* ✅ 修正测试
* ♻️ 按review意见调整
* ♻️ 清理一些遗留的复杂写法
* ♻️ 移出函数内的NameTuple
* 🔇 删除不必要的日志输出
Co-authored-by: felinae98 <731499577@qq.com>
* Update nonebot_bison/platform/bilibili/scheduler.py
* Update scheduler.py
---------
Co-authored-by: felinae98 <731499577@qq.com>
|
2024-06-17 13:24:04 +08:00 |
|
Azide
|
83bea507ab
|
🐛 补充主题渲染时遗漏的转发推文中的图片 (#554)
|
2024-06-12 23:12:01 +08:00 |
|
felinae98
|
5bd8b21f19
|
♻️ rename scheduler_config -> site
|
2024-06-03 18:36:07 +08:00 |
|
felinae98
|
2fc11a9653
|
♻️ refactor client of scheduler_config
|
2024-06-03 18:36:07 +08:00 |
|
Azide
|
307739e37a
|
✨ ParseTargetException可以携带prompt参数 (#479)
* ✨ ParseTargetException可以携带prompt参数
* ✨ 丰富prompt提示
|
2024-05-19 22:02:23 +08:00 |
|
felinae98
|
769b13ee4a
|
✨ add require_brownser for scheduler config
|
2024-05-13 23:06:08 +08:00 |
|
felinae98
|
cf50e9f288
|
✨ rename bison_theme_use_browser -> bison_use_browser
|
2024-05-07 00:11:14 +08:00 |
|
pre-commit-ci[bot]
|
ddc5e0eed7
|
⬆️ auto update by pre-commit hooks (#521)
* ⬆️ auto update by pre-commit hooks
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.2.0 → v0.3.5](https://github.com/astral-sh/ruff-pre-commit/compare/v0.2.0...v0.3.5)
- [github.com/psf/black: 24.1.1 → 24.3.0](https://github.com/psf/black/compare/24.1.1...24.3.0)
- [github.com/pre-commit/mirrors-eslint: v9.0.0-beta.1 → v9.0.0-rc.0](https://github.com/pre-commit/mirrors-eslint/compare/v9.0.0-beta.1...v9.0.0-rc.0)
* 💄 auto fix by pre-commit hooks
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
|
2024-04-02 15:07:29 +08:00 |
|
Azide
|
9bc5be5426
|
♻️ 为B站动态API建立model,转发动态放入repost字段 (#507)
* 🐛 替换为pyd兼容性写法
* ♻️ 优化 Bilibili 推送解析
* 🐛 为B站动态API建立Model,动态转发部分放入repost字段
* 🔥 删掉无关紧要的ttl字段
* 🐛 修理转发链接解析
* 🧑💻 增加可读性
* 🐛 使用pyd兼容函数
* 🐛 处理 pyd1 model rebuild 时没有递归的情况
* ♻️ 将链接生成进行统一
|
2024-03-29 15:08:06 +08:00 |
|