🐞 fix: V1.3.1 修复油管解析部分视频错误 & 更新文档

1. 修复油管解析部分视频错误
2. 更新部分常量
3. 更新文档
This commit is contained in:
zhiyu 2024-02-02 16:10:23 +08:00
parent 083b4ea613
commit c1339fde0d
5 changed files with 9 additions and 8 deletions

View File

@ -31,6 +31,8 @@ utils -- 工具类
![xhs](./img/example2.webp)
![y2b](./img/example3.webp)
## 📔 使用说明
1.【必要】下载插件

View File

@ -971,13 +971,12 @@ export class tools extends plugin {
// bestVideo = Array.from(videos).sort((a, b) => a.rate - b.rate)[videos.length - 1];
// 较为有性能的分辨率
logger.info(videos)
bestVideo = Array.from(videos).filter(item => item.scale.includes("720"))[0];
bestVideo = Array.from(videos).filter(item => item.scale.includes("720") || item.scale.includes("360"))[0];
bestAudio = Array.from(audios).filter(item => item.format === 'm4a')[0];
logger.info({
bestVideo,
bestAudio
})
// logger.mark({
// bestVideo,
// bestAudio
// })
// 格式化yt-dlp的请求
const format = `${bestVideo.id}x${bestAudio.id}`

View File

@ -1,5 +1,5 @@
- {
version: 1.3.0,
version: 1.3.1,
data:
[
新增<span class="cmd">油管解析</span>功能,

View File

@ -63,6 +63,6 @@ export const XHS_NO_WATERMARK_HEADER = {
* 分割线
* @type {string}
*/
export const DIVIDING_LINE = "\n-----------------------{}-----------------------"
export const DIVIDING_LINE = "\n------------------{}------------------"
export const REDIS_YUNZAI_ISOVERSEA = "Yz:rconsole:tools:oversea";

BIN
img/example3.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 218 KiB