tiktok: fix error when user prefers h265 and downloads photo slideshow

This commit is contained in:
dumbmoron 2024-05-29 08:48:08 +00:00
parent b7697268e5
commit 03fda93f96
No known key found for this signature in database

View file

@ -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
}