diff --git a/README.md b/README.md index da08e01..274e529 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,8 @@ utils -- 工具类 ![xhs](./img/example2.webp) +![y2b](./img/example3.webp) + ## 📔 使用说明 1.【必要】下载插件 diff --git a/apps/tools.js b/apps/tools.js index 27cf532..2fdf27f 100644 --- a/apps/tools.js +++ b/apps/tools.js @@ -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}` diff --git a/config/version.yaml b/config/version.yaml index 2d5d298..d1f53c2 100644 --- a/config/version.yaml +++ b/config/version.yaml @@ -1,5 +1,5 @@ - { - version: 1.3.0, + version: 1.3.1, data: [ 新增油管解析功能, diff --git a/constants/constant.js b/constants/constant.js index 5967f19..5550661 100644 --- a/constants/constant.js +++ b/constants/constant.js @@ -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"; \ No newline at end of file diff --git a/img/example3.webp b/img/example3.webp new file mode 100644 index 0000000..e7033c8 Binary files /dev/null and b/img/example3.webp differ