mirror of
https://github.com/wukko/cobalt.git
synced 2024-11-15 12:50:01 +00:00
tiktok: fix error when user prefers h265 and downloads photo slideshow
This commit is contained in:
parent
b7697268e5
commit
03fda93f96
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ export default async function(obj) {
|
||||||
|
|
||||||
let playAddr = detail.video.playAddr;
|
let playAddr = detail.video.playAddr;
|
||||||
if (obj.h265) {
|
if (obj.h265) {
|
||||||
const h265PlayAddr = detail.video.bitrateInfo.find(b => b.CodecType.includes("h265"))?.PlayAddr.UrlList[0]
|
const h265PlayAddr = detail?.video?.bitrateInfo?.find(b => b.CodecType.includes("h265"))?.PlayAddr.UrlList[0]
|
||||||
playAddr = h265PlayAddr || playAddr
|
playAddr = h265PlayAddr || playAddr
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue