Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ keywords = [
classifiers = [
"Development Status :: 5 - Production/Stable",
"Framework :: AsyncIO",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
Expand All @@ -48,7 +47,7 @@ dependencies = [
"apilmoji[rich]>=0.3.1,<1.0.0",
"beautifulsoup4>=4.12.0,<5.0.0",
"curl_cffi>=0.13.0,<1.0.0,!=0.14.0",
"bilibili-api-python>=17.4.1,<18.0.0",
"bilibili-api-python>=17.4.2,<18.0.0",
"nonebot-plugin-uninfo>=0.10.1,<1.0.0",
"nonebot-plugin-alconna>=0.60.4,<1.0.0",
"nonebot-plugin-localstore>=0.7.4,<1.0.0",
Expand Down Expand Up @@ -100,7 +99,7 @@ pydantic-v2 = ["pydantic>=2.0.0"]
telegram = ["nonebot-adapter-telegram>=0.1.0b20"]

[build-system]
requires = ["uv_build>=0.10.0,<0.11.0"]
requires = ["uv_build>=0.11.0,<0.12.0"]
build-backend = "uv_build"

[tool.uv]
Expand Down
4 changes: 2 additions & 2 deletions src/nonebot_plugin_parser/parsers/bilibili/opus.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class Author(Struct):
face: str
mid: int
pub_time: str
pub_ts: int
pub_ts: str


class Image(Struct):
Expand Down Expand Up @@ -115,7 +115,7 @@ def timestamp(self) -> int | None:
"""获取发布时间戳"""
for module in self.item.modules:
if module.module_type == "MODULE_TYPE_AUTHOR" and module.module_author:
return module.module_author.pub_ts
return int(module.module_author.pub_ts)
return None

def extract_nodes(self):
Expand Down
8 changes: 4 additions & 4 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading