Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

是否应该增加一个用shortvideo查询下载地址的API? #751

Open
landall opened this issue Nov 30, 2023 · 2 comments
Open

是否应该增加一个用shortvideo查询下载地址的API? #751

landall opened this issue Nov 30, 2023 · 2 comments

Comments

@landall
Copy link

landall commented Nov 30, 2023

目前shortvideo消息里自带的下载地址似乎在很短的时间(可能一个小时?)之后就报400错误了。
只有在收到消息很短的时间里能够下载。

我怀疑是这个下载地址本身带有时间校验,超时后需要重新查询出一个下载地址来。

这个是否应该设计一个HTTP API?
mirai那边是可以根据shortvideo的id或者md5来反查出下载地址的(miraiCode反序列化也可以实现)

@ryoii
Copy link
Collaborator

ryoii commented Dec 1, 2023

我大致看了下 core 的源码应该可以实现,但需要 core 开放低级 API,把需求提到 core 问问看

@landall
Copy link
Author

landall commented Oct 14, 2024

我大致看了下 core 的源码应该可以实现,但需要 core 开放低级 API,把需求提到 core 问问看

我找到一个替代的方式,在漫游时效内(7天内)的内容,可以根据时间,从漫游消息那里重新获取一次,那个地址应该是重新签名过的,可以立即用。

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

No branches or pull requests

2 participants