mirror of
https://github.com/Jerryplusy/rc-plugin.git
synced 2025-10-14 16:19:18 +00:00
🐞 fix: V1.3.1 修复油管解析部分视频错误 & 更新文档
1. 修复油管解析部分视频错误 2. 更新部分常量 3. 更新文档
This commit is contained in:
parent
083b4ea613
commit
c1339fde0d
@ -31,6 +31,8 @@ utils -- 工具类
|
|||||||
|
|
||||||

|

|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
## 📔 使用说明
|
## 📔 使用说明
|
||||||
|
|
||||||
1.【必要】下载插件
|
1.【必要】下载插件
|
||||||
|
@ -971,13 +971,12 @@ export class tools extends plugin {
|
|||||||
// bestVideo = Array.from(videos).sort((a, b) => a.rate - b.rate)[videos.length - 1];
|
// 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") || item.scale.includes("360"))[0];
|
||||||
bestVideo = Array.from(videos).filter(item => item.scale.includes("720"))[0];
|
|
||||||
bestAudio = Array.from(audios).filter(item => item.format === 'm4a')[0];
|
bestAudio = Array.from(audios).filter(item => item.format === 'm4a')[0];
|
||||||
logger.info({
|
// logger.mark({
|
||||||
bestVideo,
|
// bestVideo,
|
||||||
bestAudio
|
// bestAudio
|
||||||
})
|
// })
|
||||||
|
|
||||||
// 格式化yt-dlp的请求
|
// 格式化yt-dlp的请求
|
||||||
const format = `${bestVideo.id}x${bestAudio.id}`
|
const format = `${bestVideo.id}x${bestAudio.id}`
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
- {
|
- {
|
||||||
version: 1.3.0,
|
version: 1.3.1,
|
||||||
data:
|
data:
|
||||||
[
|
[
|
||||||
新增<span class="cmd">油管解析</span>功能,
|
新增<span class="cmd">油管解析</span>功能,
|
||||||
|
@ -63,6 +63,6 @@ export const XHS_NO_WATERMARK_HEADER = {
|
|||||||
* 分割线
|
* 分割线
|
||||||
* @type {string}
|
* @type {string}
|
||||||
*/
|
*/
|
||||||
export const DIVIDING_LINE = "\n-----------------------{}-----------------------"
|
export const DIVIDING_LINE = "\n------------------{}------------------"
|
||||||
|
|
||||||
export const REDIS_YUNZAI_ISOVERSEA = "Yz:rconsole:tools:oversea";
|
export const REDIS_YUNZAI_ISOVERSEA = "Yz:rconsole:tools:oversea";
|
BIN
img/example3.webp
Normal file
BIN
img/example3.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 218 KiB |
Loading…
x
Reference in New Issue
Block a user