nonebot-plugin-parser 2.6.3__tar.gz → 2.6.4__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.
- {nonebot_plugin_parser-2.6.3 → nonebot_plugin_parser-2.6.4}/PKG-INFO +1 -1
- {nonebot_plugin_parser-2.6.3 → nonebot_plugin_parser-2.6.4}/pyproject.toml +2 -2
- {nonebot_plugin_parser-2.6.3 → nonebot_plugin_parser-2.6.4}/src/nonebot_plugin_parser/parsers/twitter.py +7 -2
- {nonebot_plugin_parser-2.6.3 → nonebot_plugin_parser-2.6.4}/README.md +0 -0
- {nonebot_plugin_parser-2.6.3 → nonebot_plugin_parser-2.6.4}/src/nonebot_plugin_parser/__init__.py +0 -0
- {nonebot_plugin_parser-2.6.3 → nonebot_plugin_parser-2.6.4}/src/nonebot_plugin_parser/config.py +0 -0
- {nonebot_plugin_parser-2.6.3 → nonebot_plugin_parser-2.6.4}/src/nonebot_plugin_parser/constants.py +0 -0
- {nonebot_plugin_parser-2.6.3 → nonebot_plugin_parser-2.6.4}/src/nonebot_plugin_parser/download/__init__.py +0 -0
- {nonebot_plugin_parser-2.6.3 → nonebot_plugin_parser-2.6.4}/src/nonebot_plugin_parser/download/task.py +0 -0
- {nonebot_plugin_parser-2.6.3 → nonebot_plugin_parser-2.6.4}/src/nonebot_plugin_parser/download/ytdlp.py +0 -0
- {nonebot_plugin_parser-2.6.3 → nonebot_plugin_parser-2.6.4}/src/nonebot_plugin_parser/exception.py +0 -0
- {nonebot_plugin_parser-2.6.3 → nonebot_plugin_parser-2.6.4}/src/nonebot_plugin_parser/helper.py +0 -0
- {nonebot_plugin_parser-2.6.3 → nonebot_plugin_parser-2.6.4}/src/nonebot_plugin_parser/matchers/__init__.py +0 -0
- {nonebot_plugin_parser-2.6.3 → nonebot_plugin_parser-2.6.4}/src/nonebot_plugin_parser/matchers/filter.py +0 -0
- {nonebot_plugin_parser-2.6.3 → nonebot_plugin_parser-2.6.4}/src/nonebot_plugin_parser/matchers/rule.py +0 -0
- {nonebot_plugin_parser-2.6.3 → nonebot_plugin_parser-2.6.4}/src/nonebot_plugin_parser/parsers/__init__.py +0 -0
- {nonebot_plugin_parser-2.6.3 → nonebot_plugin_parser-2.6.4}/src/nonebot_plugin_parser/parsers/acfun/__init__.py +0 -0
- {nonebot_plugin_parser-2.6.3 → nonebot_plugin_parser-2.6.4}/src/nonebot_plugin_parser/parsers/acfun/video.py +0 -0
- {nonebot_plugin_parser-2.6.3 → nonebot_plugin_parser-2.6.4}/src/nonebot_plugin_parser/parsers/base.py +0 -0
- {nonebot_plugin_parser-2.6.3 → nonebot_plugin_parser-2.6.4}/src/nonebot_plugin_parser/parsers/bilibili/__init__.py +0 -0
- {nonebot_plugin_parser-2.6.3 → nonebot_plugin_parser-2.6.4}/src/nonebot_plugin_parser/parsers/bilibili/article.py +0 -0
- {nonebot_plugin_parser-2.6.3 → nonebot_plugin_parser-2.6.4}/src/nonebot_plugin_parser/parsers/bilibili/common.py +0 -0
- {nonebot_plugin_parser-2.6.3 → nonebot_plugin_parser-2.6.4}/src/nonebot_plugin_parser/parsers/bilibili/dynamic.py +0 -0
- {nonebot_plugin_parser-2.6.3 → nonebot_plugin_parser-2.6.4}/src/nonebot_plugin_parser/parsers/bilibili/favlist.py +0 -0
- {nonebot_plugin_parser-2.6.3 → nonebot_plugin_parser-2.6.4}/src/nonebot_plugin_parser/parsers/bilibili/live.py +0 -0
- {nonebot_plugin_parser-2.6.3 → nonebot_plugin_parser-2.6.4}/src/nonebot_plugin_parser/parsers/bilibili/opus.py +0 -0
- {nonebot_plugin_parser-2.6.3 → nonebot_plugin_parser-2.6.4}/src/nonebot_plugin_parser/parsers/bilibili/video.py +0 -0
- {nonebot_plugin_parser-2.6.3 → nonebot_plugin_parser-2.6.4}/src/nonebot_plugin_parser/parsers/cookie.py +0 -0
- {nonebot_plugin_parser-2.6.3 → nonebot_plugin_parser-2.6.4}/src/nonebot_plugin_parser/parsers/data.py +0 -0
- {nonebot_plugin_parser-2.6.3 → nonebot_plugin_parser-2.6.4}/src/nonebot_plugin_parser/parsers/douyin/__init__.py +0 -0
- {nonebot_plugin_parser-2.6.3 → nonebot_plugin_parser-2.6.4}/src/nonebot_plugin_parser/parsers/douyin/slides.py +0 -0
- {nonebot_plugin_parser-2.6.3 → nonebot_plugin_parser-2.6.4}/src/nonebot_plugin_parser/parsers/douyin/video.py +0 -0
- {nonebot_plugin_parser-2.6.3 → nonebot_plugin_parser-2.6.4}/src/nonebot_plugin_parser/parsers/kuaishou/__init__.py +0 -0
- {nonebot_plugin_parser-2.6.3 → nonebot_plugin_parser-2.6.4}/src/nonebot_plugin_parser/parsers/kuaishou/states.py +0 -0
- {nonebot_plugin_parser-2.6.3 → nonebot_plugin_parser-2.6.4}/src/nonebot_plugin_parser/parsers/nga.py +0 -0
- {nonebot_plugin_parser-2.6.3 → nonebot_plugin_parser-2.6.4}/src/nonebot_plugin_parser/parsers/task.py +0 -0
- {nonebot_plugin_parser-2.6.3 → nonebot_plugin_parser-2.6.4}/src/nonebot_plugin_parser/parsers/tiktok.py +0 -0
- {nonebot_plugin_parser-2.6.3 → nonebot_plugin_parser-2.6.4}/src/nonebot_plugin_parser/parsers/utils.py +0 -0
- {nonebot_plugin_parser-2.6.3 → nonebot_plugin_parser-2.6.4}/src/nonebot_plugin_parser/parsers/weibo/__init__.py +0 -0
- {nonebot_plugin_parser-2.6.3 → nonebot_plugin_parser-2.6.4}/src/nonebot_plugin_parser/parsers/weibo/article.py +0 -0
- {nonebot_plugin_parser-2.6.3 → nonebot_plugin_parser-2.6.4}/src/nonebot_plugin_parser/parsers/weibo/common.py +0 -0
- {nonebot_plugin_parser-2.6.3 → nonebot_plugin_parser-2.6.4}/src/nonebot_plugin_parser/parsers/weibo/show.py +0 -0
- {nonebot_plugin_parser-2.6.3 → nonebot_plugin_parser-2.6.4}/src/nonebot_plugin_parser/parsers/xiaohongshu/__init__.py +0 -0
- {nonebot_plugin_parser-2.6.3 → nonebot_plugin_parser-2.6.4}/src/nonebot_plugin_parser/parsers/xiaohongshu/common.py +0 -0
- {nonebot_plugin_parser-2.6.3 → nonebot_plugin_parser-2.6.4}/src/nonebot_plugin_parser/parsers/xiaohongshu/discovery.py +0 -0
- {nonebot_plugin_parser-2.6.3 → nonebot_plugin_parser-2.6.4}/src/nonebot_plugin_parser/parsers/xiaohongshu/explore.py +0 -0
- {nonebot_plugin_parser-2.6.3 → nonebot_plugin_parser-2.6.4}/src/nonebot_plugin_parser/parsers/youtube/__init__.py +0 -0
- {nonebot_plugin_parser-2.6.3 → nonebot_plugin_parser-2.6.4}/src/nonebot_plugin_parser/parsers/youtube/meta.py +0 -0
- {nonebot_plugin_parser-2.6.3 → nonebot_plugin_parser-2.6.4}/src/nonebot_plugin_parser/renders/__init__.py +0 -0
- {nonebot_plugin_parser-2.6.3 → nonebot_plugin_parser-2.6.4}/src/nonebot_plugin_parser/renders/base.py +0 -0
- {nonebot_plugin_parser-2.6.3 → nonebot_plugin_parser-2.6.4}/src/nonebot_plugin_parser/renders/common.py +0 -0
- {nonebot_plugin_parser-2.6.3 → nonebot_plugin_parser-2.6.4}/src/nonebot_plugin_parser/renders/default.py +0 -0
- {nonebot_plugin_parser-2.6.3 → nonebot_plugin_parser-2.6.4}/src/nonebot_plugin_parser/renders/htmlrender.py +0 -0
- {nonebot_plugin_parser-2.6.3 → nonebot_plugin_parser-2.6.4}/src/nonebot_plugin_parser/renders/resources/HYSongYunLangHeiW.ttf +0 -0
- {nonebot_plugin_parser-2.6.3 → nonebot_plugin_parser-2.6.4}/src/nonebot_plugin_parser/renders/resources/__init__.py +0 -0
- {nonebot_plugin_parser-2.6.3 → nonebot_plugin_parser-2.6.4}/src/nonebot_plugin_parser/renders/resources/avatar.png +0 -0
- {nonebot_plugin_parser-2.6.3 → nonebot_plugin_parser-2.6.4}/src/nonebot_plugin_parser/renders/resources/bilibili.png +0 -0
- {nonebot_plugin_parser-2.6.3 → nonebot_plugin_parser-2.6.4}/src/nonebot_plugin_parser/renders/resources/douyin.png +0 -0
- {nonebot_plugin_parser-2.6.3 → nonebot_plugin_parser-2.6.4}/src/nonebot_plugin_parser/renders/resources/fallback_pic/1.jpg +0 -0
- {nonebot_plugin_parser-2.6.3 → nonebot_plugin_parser-2.6.4}/src/nonebot_plugin_parser/renders/resources/fallback_pic/2.jpg +0 -0
- {nonebot_plugin_parser-2.6.3 → nonebot_plugin_parser-2.6.4}/src/nonebot_plugin_parser/renders/resources/fallback_pic/3.jpg +0 -0
- {nonebot_plugin_parser-2.6.3 → nonebot_plugin_parser-2.6.4}/src/nonebot_plugin_parser/renders/resources/fallback_pic/4.jpg +0 -0
- {nonebot_plugin_parser-2.6.3 → nonebot_plugin_parser-2.6.4}/src/nonebot_plugin_parser/renders/resources/fallback_pic/5.jpg +0 -0
- {nonebot_plugin_parser-2.6.3 → nonebot_plugin_parser-2.6.4}/src/nonebot_plugin_parser/renders/resources/fallback_pic/6.jpg +0 -0
- {nonebot_plugin_parser-2.6.3 → nonebot_plugin_parser-2.6.4}/src/nonebot_plugin_parser/renders/resources/fallback_pic/7.jpg +0 -0
- {nonebot_plugin_parser-2.6.3 → nonebot_plugin_parser-2.6.4}/src/nonebot_plugin_parser/renders/resources/fallback_pic/8.jpg +0 -0
- {nonebot_plugin_parser-2.6.3 → nonebot_plugin_parser-2.6.4}/src/nonebot_plugin_parser/renders/resources/fallback_pic/9.jpg +0 -0
- {nonebot_plugin_parser-2.6.3 → nonebot_plugin_parser-2.6.4}/src/nonebot_plugin_parser/renders/resources/kuaishou.png +0 -0
- {nonebot_plugin_parser-2.6.3 → nonebot_plugin_parser-2.6.4}/src/nonebot_plugin_parser/renders/resources/play.png +0 -0
- {nonebot_plugin_parser-2.6.3 → nonebot_plugin_parser-2.6.4}/src/nonebot_plugin_parser/renders/resources/tiktok.png +0 -0
- {nonebot_plugin_parser-2.6.3 → nonebot_plugin_parser-2.6.4}/src/nonebot_plugin_parser/renders/resources/twitter.png +0 -0
- {nonebot_plugin_parser-2.6.3 → nonebot_plugin_parser-2.6.4}/src/nonebot_plugin_parser/renders/resources/weibo.png +0 -0
- {nonebot_plugin_parser-2.6.3 → nonebot_plugin_parser-2.6.4}/src/nonebot_plugin_parser/renders/resources/xiaohongshu.png +0 -0
- {nonebot_plugin_parser-2.6.3 → nonebot_plugin_parser-2.6.4}/src/nonebot_plugin_parser/renders/resources/youtube.png +0 -0
- {nonebot_plugin_parser-2.6.3 → nonebot_plugin_parser-2.6.4}/src/nonebot_plugin_parser/renders/templates/card.html.jinja2 +0 -0
- {nonebot_plugin_parser-2.6.3 → nonebot_plugin_parser-2.6.4}/src/nonebot_plugin_parser/utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: nonebot-plugin-parser
|
|
3
|
-
Version: 2.6.
|
|
3
|
+
Version: 2.6.4
|
|
4
4
|
Summary: NoneBot2 链接分享解析 Alconna 版, 现支持B站|抖音|快手|微博|小红书|YouTube|TikTok|Twitter|AcFun|NGA
|
|
5
5
|
Keywords: acfun,bilibili,douyin,kuaishou,nga,nonebot,nonebot2,tiktok,twitter,video,weibo,xiaohongshu,youtube
|
|
6
6
|
Author: fllesser
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "nonebot-plugin-parser"
|
|
3
|
-
version = "2.6.
|
|
3
|
+
version = "2.6.4"
|
|
4
4
|
description = "NoneBot2 链接分享解析 Alconna 版, 现支持B站|抖音|快手|微博|小红书|YouTube|TikTok|Twitter|AcFun|NGA"
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
requires-python = ">=3.10"
|
|
@@ -116,7 +116,7 @@ conflicts = [
|
|
|
116
116
|
[tool.bumpversion]
|
|
117
117
|
tag = true
|
|
118
118
|
commit = true
|
|
119
|
-
current_version = "2.6.
|
|
119
|
+
current_version = "2.6.4"
|
|
120
120
|
message = "release: bump vesion from {current_version} to {new_version}"
|
|
121
121
|
|
|
122
122
|
[[tool.bumpversion.files]]
|
|
@@ -22,6 +22,10 @@ class MediaElement(Struct):
|
|
|
22
22
|
def duration(self) -> float | None:
|
|
23
23
|
return self.duration_millis / 1000 if self.duration_millis else None
|
|
24
24
|
|
|
25
|
+
@property
|
|
26
|
+
def original_url(self) -> str:
|
|
27
|
+
return self.url + ":orig"
|
|
28
|
+
|
|
25
29
|
|
|
26
30
|
class Article(Struct):
|
|
27
31
|
image: str | None = None
|
|
@@ -90,9 +94,10 @@ class TwitterParser(BaseParser):
|
|
|
90
94
|
)
|
|
91
95
|
result.contents.append(video)
|
|
92
96
|
elif media.type == "image":
|
|
93
|
-
result.contents.append(self.create_image(media.
|
|
97
|
+
result.contents.append(self.create_image(media.original_url))
|
|
94
98
|
|
|
95
|
-
|
|
99
|
+
if data.qrt:
|
|
100
|
+
result.repost = self._collect_result(data.qrt)
|
|
96
101
|
|
|
97
102
|
return result
|
|
98
103
|
|
|
File without changes
|
{nonebot_plugin_parser-2.6.3 → nonebot_plugin_parser-2.6.4}/src/nonebot_plugin_parser/__init__.py
RENAMED
|
File without changes
|
{nonebot_plugin_parser-2.6.3 → nonebot_plugin_parser-2.6.4}/src/nonebot_plugin_parser/config.py
RENAMED
|
File without changes
|
{nonebot_plugin_parser-2.6.3 → nonebot_plugin_parser-2.6.4}/src/nonebot_plugin_parser/constants.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{nonebot_plugin_parser-2.6.3 → nonebot_plugin_parser-2.6.4}/src/nonebot_plugin_parser/exception.py
RENAMED
|
File without changes
|
{nonebot_plugin_parser-2.6.3 → nonebot_plugin_parser-2.6.4}/src/nonebot_plugin_parser/helper.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{nonebot_plugin_parser-2.6.3 → nonebot_plugin_parser-2.6.4}/src/nonebot_plugin_parser/parsers/nga.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{nonebot_plugin_parser-2.6.3 → nonebot_plugin_parser-2.6.4}/src/nonebot_plugin_parser/utils.py
RENAMED
|
File without changes
|