mirror of
https://github.com/Jerryplusy/rc-plugin.git
synced 2025-10-14 08:09:19 +00:00
🔧 refactor: 优化 油管解析视频下载策略/强制标题输出utf8
This commit is contained in:
parent
6dcd018511
commit
26e846bf9d
@ -18,7 +18,7 @@ function constructProxyParam(isOversea, proxy) {
|
|||||||
* @returns string
|
* @returns string
|
||||||
*/
|
*/
|
||||||
export function ytDlpGetTilt(url, isOversea, proxy) {
|
export function ytDlpGetTilt(url, isOversea, proxy) {
|
||||||
return execSync(`yt-dlp --get-title ${constructProxyParam(isOversea, proxy)} ${url}`);
|
return execSync(`yt-dlp --get-title ${constructProxyParam(isOversea, proxy)} ${url} --encoding utf8`);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user