nonebot-plugin-splatoon3-schedule 2.0.0__tar.gz → 2.0.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.1}/PKG-INFO +2 -3
  2. {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.1}/nonebot_plugin_splatoon3_schedule/data/data_source.py +6 -2
  3. {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.1}/nonebot_plugin_splatoon3_schedule/utils/utils.py +5 -6
  4. {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.1}/pyproject.toml +12 -9
  5. {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.1}/LICENSE +0 -0
  6. {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.1}/README.md +0 -0
  7. {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.1}/nonebot_plugin_splatoon3_schedule/__init__.py +0 -0
  8. {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.1}/nonebot_plugin_splatoon3_schedule/check.py +0 -0
  9. {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.1}/nonebot_plugin_splatoon3_schedule/config.py +0 -0
  10. {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.1}/nonebot_plugin_splatoon3_schedule/data/__init__.py +0 -0
  11. {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.1}/nonebot_plugin_splatoon3_schedule/data/db_control.py +0 -0
  12. {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.1}/nonebot_plugin_splatoon3_schedule/data/db_image.py +0 -0
  13. {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.1}/nonebot_plugin_splatoon3_schedule/data/static_data_getter.py +0 -0
  14. {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.1}/nonebot_plugin_splatoon3_schedule/image/__init__.py +0 -0
  15. {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.1}/nonebot_plugin_splatoon3_schedule/image/image.py +0 -0
  16. {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.1}/nonebot_plugin_splatoon3_schedule/image/image_processer.py +0 -0
  17. {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.1}/nonebot_plugin_splatoon3_schedule/image/image_processer_tools.py +0 -0
  18. {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.1}/nonebot_plugin_splatoon3_schedule/resource/ImageData/10024.png +0 -0
  19. {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.1}/nonebot_plugin_splatoon3_schedule/resource/ImageData/10025.ico +0 -0
  20. {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.1}/nonebot_plugin_splatoon3_schedule/resource/ImageData/10026.png +0 -0
  21. {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.1}/nonebot_plugin_splatoon3_schedule/resource/ImageData/AREA.png +0 -0
  22. {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.1}/nonebot_plugin_splatoon3_schedule/resource/ImageData/CLAM.png +0 -0
  23. {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.1}/nonebot_plugin_splatoon3_schedule/resource/ImageData/Cohozuna.png +0 -0
  24. {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.1}/nonebot_plugin_splatoon3_schedule/resource/ImageData/GOAL.png +0 -0
  25. {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.1}/nonebot_plugin_splatoon3_schedule/resource/ImageData/Horrorboros.png +0 -0
  26. {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.1}/nonebot_plugin_splatoon3_schedule/resource/ImageData/LOFT.png +0 -0
  27. {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.1}/nonebot_plugin_splatoon3_schedule/resource/ImageData/Megalodontia.png +0 -0
  28. {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.1}/nonebot_plugin_splatoon3_schedule/resource/ImageData/Random.png +0 -0
  29. {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.1}/nonebot_plugin_splatoon3_schedule/resource/ImageData/Ranked-Challenge.png +0 -0
  30. {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.1}/nonebot_plugin_splatoon3_schedule/resource/ImageData/Ranked-Open.png +0 -0
  31. {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.1}/nonebot_plugin_splatoon3_schedule/resource/ImageData/Ranked.png +0 -0
  32. {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.1}/nonebot_plugin_splatoon3_schedule/resource/ImageData/Regular.png +0 -0
  33. {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.1}/nonebot_plugin_splatoon3_schedule/resource/ImageData/TURF_WAR.png +0 -0
  34. {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.1}/nonebot_plugin_splatoon3_schedule/resource/ImageData/Triumvirate.png +0 -0
  35. {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.1}/nonebot_plugin_splatoon3_schedule/resource/ImageData/X.png +0 -0
  36. {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.1}/nonebot_plugin_splatoon3_schedule/resource/ImageData/bg.png +0 -0
  37. {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.1}/nonebot_plugin_splatoon3_schedule/resource/ImageData/bg2.png +0 -0
  38. {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.1}/nonebot_plugin_splatoon3_schedule/resource/ImageData/bg3.png +0 -0
  39. {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.1}/nonebot_plugin_splatoon3_schedule/resource/ImageData/big_run.png +0 -0
  40. {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.1}/nonebot_plugin_splatoon3_schedule/resource/ImageData/black-texture.png +0 -0
  41. {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.1}/nonebot_plugin_splatoon3_schedule/resource/ImageData/cat_paw_mask.png +0 -0
  42. {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.1}/nonebot_plugin_splatoon3_schedule/resource/ImageData/coop.png +0 -0
  43. {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.1}/nonebot_plugin_splatoon3_schedule/resource/ImageData/coop_bg2.png +0 -0
  44. {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.1}/nonebot_plugin_splatoon3_schedule/resource/ImageData/coop_fish.png +0 -0
  45. {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.1}/nonebot_plugin_splatoon3_schedule/resource/ImageData/coop_mask.png +0 -0
  46. {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.1}/nonebot_plugin_splatoon3_schedule/resource/ImageData/event_bg.png +0 -0
  47. {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.1}/nonebot_plugin_splatoon3_schedule/resource/ImageData/festival_mask.png +0 -0
  48. {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.1}/nonebot_plugin_splatoon3_schedule/resource/ImageData/fight_mask.png +0 -0
  49. {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.1}/nonebot_plugin_splatoon3_schedule/resource/ImageData/filleted_corner.png +0 -0
  50. {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.1}/nonebot_plugin_splatoon3_schedule/resource/ImageData/private.png +0 -0
  51. {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.1}/nonebot_plugin_splatoon3_schedule/resource/ImageData/swim_ring.png +0 -0
  52. {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.1}/nonebot_plugin_splatoon3_schedule/resource/ImageData/team_coop.png +0 -0
  53. {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.1}/nonebot_plugin_splatoon3_schedule/resource/ImageData/time_head_bg.png +0 -0
  54. {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.1}/nonebot_plugin_splatoon3_schedule/resource/db/image.db +0 -0
  55. {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.1}/nonebot_plugin_splatoon3_schedule/resource/font/Splatfont1.otf +0 -0
  56. {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.1}/nonebot_plugin_splatoon3_schedule/resource/font/Splatfont2.otf +0 -0
  57. {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.1}/nonebot_plugin_splatoon3_schedule/resource/font/cn.ttf +0 -0
  58. {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.1}/nonebot_plugin_splatoon3_schedule/resource/font/common.otf +0 -0
  59. {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.1}/nonebot_plugin_splatoon3_schedule/util.py +0 -0
  60. {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.1}/nonebot_plugin_splatoon3_schedule/utils/__init__.py +0 -0
  61. {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.1}/nonebot_plugin_splatoon3_schedule/utils/bot.py +0 -0
  62. {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.1}/nonebot_plugin_splatoon3_schedule/utils/dataClass.py +0 -0
  63. {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.1}/nonebot_plugin_splatoon3_schedule/utils/translation.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nonebot-plugin-splatoon3-schedule
3
- Version: 2.0.0
3
+ Version: 2.0.1
4
4
  Summary: 一个基于nonebot2框架的splatoon3游戏日程查询插件
5
5
  License-File: LICENSE
6
6
  Author: cypas
@@ -16,7 +16,7 @@ Classifier: Programming Language :: Python :: 3.14
16
16
  Requires-Dist: Pillow (>=11.3.0,<12.0.0)
17
17
  Requires-Dist: beautifulsoup4 (>=4.12.2,<5.0.0)
18
18
  Requires-Dist: cfscrape (>=2.1.1,<3.0.0)
19
- Requires-Dist: httpx (>=0.26.0,<0.27.0)
19
+ Requires-Dist: httpx (>=0.28.1,<0.29.0)
20
20
  Requires-Dist: nonebot-adapter-kaiheila (>=0.3.4,<0.4.0)
21
21
  Requires-Dist: nonebot-adapter-onebot (>=2.4.6,<3.0.0)
22
22
  Requires-Dist: nonebot-adapter-qq (>=1.6.6,<2.0.0)
@@ -25,7 +25,6 @@ Requires-Dist: nonebot-plugin-apscheduler (>=0.5.0,<0.6.0)
25
25
  Requires-Dist: nonebot2 (>=2.4.4,<3.0.0)
26
26
  Requires-Dist: playwright (>=1.40.0,<2.0.0)
27
27
  Requires-Dist: pydantic (>=1.0.0,<3.0.0,!=2.5.0,!=2.5.1)
28
- Requires-Dist: urllib3 (==1.26.16)
29
28
  Description-Content-Type: text/markdown
30
29
 
31
30
  <div align="center">
@@ -275,12 +275,16 @@ async def init_browser() -> Browser:
275
275
  """初始化 browser 并唤起"""
276
276
  global _browser
277
277
  p = await async_playwright().start()
278
+ browser_args = [
279
+ # 设置默认字体
280
+ '--default-font-family="Noto Sans CJK"',
281
+ ]
278
282
  if proxy_address:
279
283
  proxies = {"server": "http://{}".format(proxy_address)}
280
284
  # 代理访问
281
- _browser = await p.chromium.launch(proxy=proxies)
285
+ _browser = await p.chromium.launch(proxy=proxies, args=browser_args)
282
286
  else:
283
- _browser = await p.chromium.launch()
287
+ _browser = await p.chromium.launch(args=browser_args)
284
288
  return _browser
285
289
 
286
290
 
@@ -16,10 +16,9 @@ DIR_RESOURCE = (
16
16
  time_format_ymdh = "%Y-%m-%dT%H"
17
17
  HTTP_TIME_OUT = 10.0 # 请求超时,秒
18
18
  proxy_address = plugin_config.splatoon3_proxy_address
19
- if proxy_address:
20
- proxies = "http://{}".format(proxy_address)
21
- else:
22
- proxies = None
19
+
20
+ proxies = f"http://{proxy_address}" if proxy_address else None
21
+
23
22
 
24
23
  # 背景 rgb颜色
25
24
  dict_bg_rgb = {
@@ -60,14 +59,14 @@ def cf_http_get(url: str):
60
59
 
61
60
  async def async_http_get(url: str) -> Response:
62
61
  """async http_get"""
63
- async with httpx.AsyncClient(proxies=proxies) as client:
62
+ async with httpx.AsyncClient(proxy=proxies) as client:
64
63
  response = await client.get(url, timeout=HTTP_TIME_OUT)
65
64
  return response
66
65
 
67
66
 
68
67
  def http_get(url: str) -> Response:
69
68
  """http_get"""
70
- response = httpx.get(url, proxies=proxies, timeout=HTTP_TIME_OUT)
69
+ response = httpx.get(url, proxy=proxies, timeout=HTTP_TIME_OUT)
71
70
  return response
72
71
 
73
72
 
@@ -1,27 +1,30 @@
1
1
  [tool.poetry]
2
2
  name = "nonebot-plugin-splatoon3-schedule"
3
- version = "2.0.0"
3
+ version = "2.0.1"
4
4
  description = "一个基于nonebot2框架的splatoon3游戏日程查询插件"
5
5
  authors = ["cypas <ayano05@outlook.com>"]
6
6
  readme = "README.md"
7
- packages = [{include = "nonebot_plugin_splatoon3_schedule"}]
7
+ packages = [{ include = "nonebot_plugin_splatoon3_schedule" }]
8
8
 
9
9
  [tool.poetry.dependencies]
10
10
  python = "^3.9"
11
- beautifulsoup4="^4.12.2"
12
- cfscrape="^2.1.1"
13
- httpx="^0.26.0"
14
- nonebot2="^2.4.4"
11
+ beautifulsoup4 = "^4.12.2"
12
+ cfscrape = "^2.1.1"
13
+ httpx = "^0.28.1"
14
+ nonebot2 = "^2.4.4"
15
15
  pydantic = ">=1.0.0,<3.0.0,!=2.5.0,!=2.5.1"
16
- Pillow="^11.3.0"
17
- urllib3="1.26.16"
16
+ Pillow = "^11.3.0"
18
17
  playwright = "^1.40.0"
19
18
  nonebot-adapter-onebot = "^2.4.6"
20
- nonebot-adapter-telegram= "^0.1.0b20"
19
+ nonebot-adapter-telegram = "^0.1.0b20"
21
20
  nonebot-adapter-kaiheila = "^0.3.4"
22
21
  nonebot-adapter-qq = "^1.6.6"
23
22
  nonebot-plugin-apscheduler = "^0.5.0"
24
23
 
24
+ [tool.poetry.group.test.dependencies]
25
+ nonebug = "^0.3.5"
26
+ pytest-asyncio = "^0.23.5"
27
+
25
28
  [build-system]
26
29
  requires = ["poetry-core"]
27
30
  build-backend = "poetry.core.masonry.api"