mirror of
https://github.com/Jerryplusy/rc-plugin.git
synced 2025-10-14 16:19:18 +00:00
🐞 fix: 热修复部分问题
This commit is contained in:
parent
73444e6018
commit
23438d01ed
@ -181,7 +181,7 @@ export class tools extends plugin {
|
|||||||
const urlType = douyinTypeMap[urlTypeCode];
|
const urlType = douyinTypeMap[urlTypeCode];
|
||||||
if (urlType === "video") {
|
if (urlType === "video") {
|
||||||
const url_2 = item.video.play_addr.url_list[2];
|
const url_2 = item.video.play_addr.url_list[2];
|
||||||
downloadVideo(url_2, false, headers).then(video => {
|
this.downloadVideo(url_2, false, headers).then(video => {
|
||||||
e.reply(
|
e.reply(
|
||||||
segment.video(
|
segment.video(
|
||||||
`${this.defaultPath}${
|
`${this.defaultPath}${
|
||||||
@ -274,7 +274,7 @@ export class tools extends plugin {
|
|||||||
.then(resp => {
|
.then(resp => {
|
||||||
const data = resp.data.aweme_list[0];
|
const data = resp.data.aweme_list[0];
|
||||||
e.reply(`识别:tiktok, ${data.desc}`);
|
e.reply(`识别:tiktok, ${data.desc}`);
|
||||||
downloadVideo(data.video.play_addr.url_list[0], true).then(video => {
|
this.downloadVideo(data.video.play_addr.url_list[0], true).then(video => {
|
||||||
e.reply(
|
e.reply(
|
||||||
segment.video(
|
segment.video(
|
||||||
`${this.defaultPath}${this.e.group_id || this.e.user_id}/temp.mp4`,
|
`${this.defaultPath}${this.e.group_id || this.e.user_id}/temp.mp4`,
|
||||||
@ -470,7 +470,7 @@ export class tools extends plugin {
|
|||||||
task.push(this.downloadImg(item.url, downloadPath));
|
task.push(this.downloadImg(item.url, downloadPath));
|
||||||
} else if (item.type === "video") {
|
} else if (item.type === "video") {
|
||||||
// 视频
|
// 视频
|
||||||
await downloadVideo(resp.includes.media[0].variants[0].url, true).then(
|
await this.downloadVideo(resp.includes.media[0].variants[0].url, true).then(
|
||||||
_ => {
|
_ => {
|
||||||
e.reply(segment.video(`${downloadPath}/temp.mp4`));
|
e.reply(segment.video(`${downloadPath}/temp.mp4`));
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user