mirror of
https://github.com/imputnet/cobalt.git
synced 2025-12-13 19:55:20 +00: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