From 03fda93f969d8512dad24f5bfe737279d1c886bd Mon Sep 17 00:00:00 2001 From: dumbmoron Date: Wed, 29 May 2024 08:48:08 +0000 Subject: [PATCH] tiktok: fix error when user prefers h265 and downloads photo slideshow --- src/modules/processing/services/tiktok.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/processing/services/tiktok.js b/src/modules/processing/services/tiktok.js index 0984ec04..33e7aef3 100644 --- a/src/modules/processing/services/tiktok.js +++ b/src/modules/processing/services/tiktok.js @@ -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 }