From 7488c74fafb92b73ac58772f661e5601e2bb5cac Mon Sep 17 00:00:00 2001 From: wukko Date: Mon, 20 Jan 2025 19:46:12 +0600 Subject: [PATCH] api/xiaohongshu: clean up the h265-h264 if statement Co-authored-by: jj --- api/src/processing/services/xiaohongshu.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/api/src/processing/services/xiaohongshu.js b/api/src/processing/services/xiaohongshu.js index 45d7acc5..bbb53ab1 100644 --- a/api/src/processing/services/xiaohongshu.js +++ b/api/src/processing/services/xiaohongshu.js @@ -71,9 +71,7 @@ export default async function ({ id, token, shareId, h265, isAudioOnly, dispatch if (h265 && !isAudioOnly && video.consumer?.originVideoKey) { videoURL = `https://sns-video-bd.xhscdn.com/${video.consumer.originVideoKey}`; - } - - if (!videoURL) { + } else { const h264Streams = video.media?.stream?.h264; if (h264Streams?.length) {