Skip to content

feat(twitter): add original_url property to MediaElement and update image handling#545

Merged
fllesser merged 1 commit into
masterfrom
feat/twitter/orig_img
Apr 29, 2026
Merged

feat(twitter): add original_url property to MediaElement and update image handling#545
fllesser merged 1 commit into
masterfrom
feat/twitter/orig_img

Conversation

@fllesser
Copy link
Copy Markdown
Owner

No description provided.

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 28, 2026

❌ 1 Tests Failed:

Tests completed Failed Passed Skipped
46 1 45 3
View the top 1 failed test(s) by shortest run time
tests.parsers.test_kuaishou::test_parse
Stack Traces | 2.12s run time
tests/parsers/test_kuaishou.py:39: in test_parse
    await asyncio.gather(*[parse(url) for url in test_urls])
tests/parsers/test_kuaishou.py:28: in parse
    result = await parser.parse(keyword, searched)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.../nonebot_plugin_parser/parsers/base.py:89: in parse
    return await self._handlers[keyword](self, searched)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.../parsers/kuaishou/__init__.py:38: in _parse_v_kuaishou
    response.raise_for_status()
.venv/lib/python3.14.../site-packages/httpx/_models.py:829: in raise_for_status
    raise HTTPStatusError(message, request=request, response=self)
E   httpx.HTTPStatusError: Client error '400 ' for url 'https://kph8gvfz.m.chenzhongtech..../fw/photo/3xfg9g3udsuzi7e?cc=share_copylink&followRefer=151&shareMethod=TOKEN&docId=9&kpn=NEBULA&subBiz=BROWSE_SLIDE_PHOTO&photoId=3xfg9g3udsuzi7e&shareId=18396414272994&shareToken=X-155yuF1h99s1cN&shareResourceType=PHOTO_OTHER&userId=3xqzuyipahhctzg&shareType=1&et=1_i%2F2004531595535422530_sl105bl&shareMode=APP&efid=3xv62g5cni4k2zk&originShareId=18396414272994&appType=21&shareObjectId=5232338502682752745&shareUrlOpened=0&timestamp=1747286401648'
E   For more information check: https://developer.mozilla..../HTTP/Status/400

To view more test analytics, go to the Test Analytics Dashboard
📋 Got 3 mins? Take this short survey to help us improve Test Analytics.

@github-actions
Copy link
Copy Markdown

类型 PIL 耗时(秒) HTML 耗时(秒) 渲染所用图片总大小(MB) PIL 导出图片大小(MB) HTML 导出图片大小(MB)
微博视频2 0.01196 0.78421 0.01280 0.03541 0.18327
微博视频 0.01223 0.78420 0.01280 0.03432 0.18050
微博纯文2 0.03204 0.88927 0.00605 0.12023 0.35956
微博转发纯文 0.07095 1.05239 0.01724 0.24325 0.71448
B站转发动态 0.20642 1.54498 0.37278 0.38265 1.42482
微博图集(2张) 0.33058 1.13306 4.88308 0.64458 2.21195
哔哩哔哩动态(包含emoji) 0.36971 1.88223 0.01244 0.18507 0.55960
微博图集(4张) 0.39992 1.70690 2.34023 0.72816 2.45148
B站动态 0.51894 3.14703 0.00653 1.34777 3.51336
微博图集(9张) 1.19682 2.01004 10.98936 0.98579 3.08158

@fllesser fllesser merged commit 08a4de9 into master Apr 29, 2026
15 of 16 checks passed
@fllesser fllesser deleted the feat/twitter/orig_img branch April 29, 2026 02:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant