mirror of
https://github.com/Jerryplusy/rc-plugin.git
synced 2025-10-14 16:19:18 +00:00
🎈 pref: 修剪冗余逻辑
This commit is contained in:
parent
b9ec842960
commit
e35d5e5140
@ -291,12 +291,11 @@ export class tools extends plugin {
|
||||
// 判断是否使用压缩格式
|
||||
const { play_addr_265, play_addr_h264, play_addr } = item.video;
|
||||
// 使用今日头条 CDN 进一步加快解析速度
|
||||
const videoAddrURI = play_addr.uri;
|
||||
if (this.douyinCompression === 1) {
|
||||
const videoAddrURI = Math.random() > 0.5 ? play_addr_265.uri : play_addr_h264.uri;
|
||||
resUrl = DY_TOUTIAO_INFO.replace("1080p", "720p").replace("{}", videoAddrURI);
|
||||
} else {
|
||||
// 原始格式,ps. videoAddrList这里[0]、[1]是 http,[最后一个]是 https
|
||||
const videoAddrURI = play_addr.uri;
|
||||
resUrl = DY_TOUTIAO_INFO.replace("{}", videoAddrURI);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user