mirror of
https://github.com/wukko/cobalt.git
synced 2025-06-13 13:47:38 +02:00
tiktok: fix error when user prefers h265 and downloads photo slideshow
This commit is contained in:
@ -57,7 +57,7 @@ export default async function(obj) {
|
||||
|
||||
let playAddr = detail.video.playAddr;
|
||||
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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user