diff --git a/pyproject.toml b/pyproject.toml index 81a0d1d1..e6a596e6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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", @@ -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", @@ -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] diff --git a/src/nonebot_plugin_parser/parsers/bilibili/opus.py b/src/nonebot_plugin_parser/parsers/bilibili/opus.py index 20101664..c64061d6 100644 --- a/src/nonebot_plugin_parser/parsers/bilibili/opus.py +++ b/src/nonebot_plugin_parser/parsers/bilibili/opus.py @@ -11,7 +11,7 @@ class Author(Struct): face: str mid: int pub_time: str - pub_ts: int + pub_ts: str class Image(Struct): @@ -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): diff --git a/uv.lock b/uv.lock index 78f5b792..2c3dd719 100644 --- a/uv.lock +++ b/uv.lock @@ -157,7 +157,7 @@ wheels = [ [[package]] name = "bilibili-api-python" -version = "17.4.1" +version = "17.4.2" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "apscheduler" }, @@ -173,9 +173,9 @@ dependencies = [ { name = "qrcode-terminal" }, { name = "yarl" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/54/16/475f1fdb841d2fad6223ef2eab9c1ec99d680a4271505946c25855265065/bilibili_api_python-17.4.1.tar.gz", hash = "sha256:5b0f16468cfbb3ee801c7d7cc970f9082252f6758c6d8c48c5d8dac42235cb62", size = 1420338, upload-time = "2025-12-20T10:59:40.299Z" } +sdist = { url = "https://files.pythonhosted.org/packages/2e/09/d091a888423185038b232555868c4bd82cf351677b24ec633f287acca0d3/bilibili_api_python-17.4.2.tar.gz", hash = "sha256:3ec62eaa45702779957eaf70fba0c5ff7c858054804cb605780f76fee388ebd5", size = 1422431, upload-time = "2026-06-19T12:55:26.74Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/07/50/520f98ef607687d686c9170b3ff2db944152bb0dc43bef0df7b4face8c5b/bilibili_api_python-17.4.1-py3-none-any.whl", hash = "sha256:3054b824f0f7ac81917329f19909f39d24fb3b7d9de1672c6dd4cb9fa6e5757d", size = 387124, upload-time = "2025-12-20T10:59:38.974Z" }, + { url = "https://files.pythonhosted.org/packages/8e/41/c12f4c52cecd6ca6c4bee49a8949ed3df3561e5dd12b891aba96dcdc4502/bilibili_api_python-17.4.2-py3-none-any.whl", hash = "sha256:91e002b2e0bcd3eb50239e35ceb849133b574f407a92a06636e1de1031b6d09d", size = 387324, upload-time = "2026-06-19T12:55:25.586Z" }, ] [[package]] @@ -1623,7 +1623,7 @@ requires-dist = [ { name = "aiofiles", specifier = ">=25.1.0" }, { name = "apilmoji", extras = ["rich"], specifier = ">=0.3.1,<1.0.0" }, { name = "beautifulsoup4", specifier = ">=4.12.0,<5.0.0" }, - { name = "bilibili-api-python", specifier = ">=17.4.1,<18.0.0" }, + { name = "bilibili-api-python", specifier = ">=17.4.2,<18.0.0" }, { name = "curl-cffi", specifier = ">=0.13.0,!=0.14.0,<1.0.0" }, { name = "emosvg", marker = "extra == 'all'", specifier = ">=0.1.7" }, { name = "emosvg", marker = "extra == 'emosvg'", specifier = ">=0.1.7" },