Azide
8ab60d65d0
✨ B站获取OPUS格式动态 ( #651 )
2024-11-06 16:48:40 +08:00
Azide
088e7a439f
✨ 新增可以在 fsm 抛出错误后重置 fsm 的装饰器工具
2024-09-17 22:59:09 +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
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
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
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
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
pre-commit-ci[bot]
9b514263aa
⬆️ auto update by pre-commit hooks ( #465 )
...
* ⬆️ auto update by pre-commit hooks
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.1.9 → v0.2.0](https://github.com/astral-sh/ruff-pre-commit/compare/v0.1.9...v0.2.0 )
- [github.com/psf/black: 23.12.1 → 24.1.1](https://github.com/psf/black/compare/23.12.1...24.1.1 )
- [github.com/pre-commit/mirrors-eslint: v9.0.0-alpha.0 → v9.0.0-alpha.2](https://github.com/pre-commit/mirrors-eslint/compare/v9.0.0-alpha.0...v9.0.0-alpha.2 )
* 💄 auto fix by pre-commit hooks
* 💄 auto fix by pre-commit hooks
* 🐛 fix some merge error
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Azide <rukuy@qq.com>
2024-03-17 17:21:23 +08:00
Azide
f202071e9f
✨ 添加 Theme 功能
2024-02-16 09:46:13 +08:00
AzideCupric
3039ba7bf9
🐛 处理topic_info字段缺失的问题 ( #354 )
...
* 🐛 处理topic_info字段缺失的问题
* ✅ 补充测试
* ♻️ dict get 默认为 None
Co-authored-by: felinae98 <731499577@qq.com>
* ♻️ 原地tp?
Co-authored-by: felinae98 <731499577@qq.com>
---------
Co-authored-by: felinae98 <731499577@qq.com>
2023-09-04 20:43:51 +08:00
felinae98
e7dcfdee50
✨ 提供批量 api 接口 ( #290 )
...
* 🚧 add batch api
* 🚧 support batch in scheduler
* ✨ use batch api in bilibili-live
✅ patch platform_manager directly
✨ use batch api in bilibili-live
✅ patch platform_manager directly
* ♻️ refactor var name
* 🐛 fix test
* 🐛 fix scheduler
* 🐛 fix test
2023-08-29 21:12:42 +08:00
UKM
cfa91df5e4
🐞 fix(text-similarity): 修复除0报错 ( #302 )
...
* 🐞 fix(text-similarity): 修复除0报错
没有考虑到bilibili的推送出现动态或者视频简介长度为零的情况,出现文本相似度除0Error
* 🧪 test(bilibili): 添加视频动态内容为空的情况的测试
* 🧪 test(text-similarity): 增加文本相似度函数的测试
* Update test_rss.py
* 📃 docs(text_similarity): 添加文本相似度函数的注释
* 🦄 refactor(text_similarity): 重构文本相似度的比较方法
* 🎈 perf(similar_text): 将比较函数的return改成raise
* 🦄 refactor(text_similarity): 重构文本相似度比较方法
* Update nonebot_bison/platform/bilibili.py
Co-authored-by: felinae98 <731499577@qq.com>
* Update nonebot_bison/platform/rss.py
Co-authored-by: felinae98 <731499577@qq.com>
---------
Co-authored-by: felinae98 <731499577@qq.com>
2023-08-27 16:28:26 +08:00
Azide
fc699d80ce
⬆️ 升级dev工具依赖
...
💄 auto fix by pre-commit hooks
2023-07-18 21:43:25 +08:00
Azide
bf788ff72a
🚨 移除noqa: E501
...
💄 auto fix by pre-commit hooks
2023-07-18 21:43:25 +08:00
Azide
7d4eb7785c
🎨 按ruff调整测试代码
2023-07-18 21:43:25 +08:00
Azide
147f858a31
🐛 修复B站订阅没有动态的用户时报错的问题(第二次)
2023-07-17 20:29:12 +08:00
AzideCupric
24b6d60d69
开播提醒推送的图片改为使用直播间封面 ( #249 )
...
* ✨ 为bilibili直播添加下播提醒,添加直播分区信息
🚸 开播提醒推送的图片改为使用直播间封面
* ♻️ 使用Enum
* 🐛 修复bilibili发送视频动态时不推送视频标题的问题
* 🎨 调整LiveAction的注释和jaccard函数代码位置
* 🚨 修改RawPost类型定义,优化bililive类型显示
2023-05-14 01:41:25 +08:00
felinae98
bd679914eb
✨ add context to log http error
2022-11-24 14:12:11 +08:00
felinae98
74b5074f04
inject http client to scheduler
2022-10-16 20:48:14 +08:00
felinae98
317b9fbaa3
fix test
2022-10-07 17:37:54 +08:00
felinae98
22f6796b33
Merge branch 'main' into next
2022-09-24 09:57:59 +08:00
Azide
4177fd149a
feat (issue#67):添加屏蔽特定tag的功能
2022-09-02 02:48:11 +08:00
felinae98
1f074b1045
Merge branch 'main' into next
2022-06-05 16:48:40 +08:00
Azide
a6f9cfa2a0
完善bilibili的单元测试,尝试解决推文乱码问题(?
2022-05-21 18:19:06 +08:00
felinae98
831b2f2ca1
update ncm_artist ncm_radio
2022-03-21 15:46:48 +08:00
felinae98
5a492aceb3
format code
2022-02-12 11:22:39 +08:00
felinae98
79799e6d44
Merge branch 'main' into nonebot-b1
2022-02-12 11:21:20 +08:00
felinae98
7dbbaea6c8
update config
2022-02-12 10:40:27 +08:00
felinae98
709a3e214b
format code
2022-02-12 10:20:02 +08:00
felinae98
8d40ba504c
update all test
2022-02-12 00:48:25 +08:00
hemengyang
547be7608f
add pre-commit and format files
2022-02-09 21:05:14 +08:00
felinae98
4aae3a8c6f
update test
2021-11-17 22:07:11 +08:00
felinae98
f135bbb5f6
add forward for bilibili
2021-09-12 19:03:35 +08:00