mirror of
https://github.com/Jerryplusy/rc-plugin.git
synced 2025-10-14 16:19:18 +00:00
🐞 fix: 修复 wb 无法发送视频问题,感谢群友@非酋
This commit is contained in:
parent
07e3669cb2
commit
2a9b9fec6a
@ -1270,11 +1270,12 @@ export class tools extends plugin {
|
|||||||
// 文章
|
// 文章
|
||||||
if (!videoUrl) return true
|
if (!videoUrl) return true
|
||||||
try {
|
try {
|
||||||
|
// wb 视频只能强制使用 1,由群友@非酋提出
|
||||||
this.downloadVideo(videoUrl, false, {
|
this.downloadVideo(videoUrl, false, {
|
||||||
"User-Agent": COMMON_USER_AGENT,
|
"User-Agent": COMMON_USER_AGENT,
|
||||||
"accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9",
|
"accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9",
|
||||||
"referer": "https://weibo.com/",
|
"referer": "https://weibo.com/",
|
||||||
}).then(path => {
|
}, 1).then(path => {
|
||||||
this.sendVideoToUpload(e, `${ path }/temp.mp4`)
|
this.sendVideoToUpload(e, `${ path }/temp.mp4`)
|
||||||
});
|
});
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user