mirror of
https://github.com/Jerryplusy/rc-plugin.git
synced 2025-10-14 16:19:18 +00:00
🐞 fix: 修复windows不能使用解析问题
This commit is contained in:
parent
f76be0a2e8
commit
5d0adf5f66
@ -194,15 +194,17 @@ export class tools extends plugin {
|
|||||||
|
|
||||||
await getDownloadUrl(url)
|
await getDownloadUrl(url)
|
||||||
.then(data => {
|
.then(data => {
|
||||||
this.downBili(path, data.videoUrl, data.audioUrl)
|
this.downBili(`${path}temp`, data.videoUrl, data.audioUrl)
|
||||||
.then(data => {
|
.then(data => {
|
||||||
e.reply(segment.video(`${ path }.mp4`))
|
e.reply(segment.video(`${ path }temp.mp4`))
|
||||||
})
|
})
|
||||||
.catch(data => {
|
.catch(err => {
|
||||||
|
console.log(err)
|
||||||
e.reply('解析失败,请重试一下')
|
e.reply('解析失败,请重试一下')
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
.catch(err => {
|
.catch(err => {
|
||||||
|
console.log(err)
|
||||||
e.reply('解析失败,请重试一下')
|
e.reply('解析失败,请重试一下')
|
||||||
});
|
});
|
||||||
return true
|
return true
|
||||||
@ -487,7 +489,7 @@ export class tools extends plugin {
|
|||||||
),
|
),
|
||||||
])
|
])
|
||||||
.then(data => {
|
.then(data => {
|
||||||
return mergeFileToMp4(data[0].fullFileName, data[1].fullFileName, title + '.mp4');
|
mergeFileToMp4(data[0].fullFileName, data[1].fullFileName, title + '.mp4')
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user