api/xiaohongshu: clean up the h265-h264 if statement

Co-authored-by: jj <log@riseup.net>
This commit is contained in:
wukko 2025-01-20 19:46:12 +06:00 committed by GitHub
parent e39b0ae7b3
commit 7488c74faf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -71,9 +71,7 @@ export default async function ({ id, token, shareId, h265, isAudioOnly, dispatch
if (h265 && !isAudioOnly && video.consumer?.originVideoKey) { if (h265 && !isAudioOnly && video.consumer?.originVideoKey) {
videoURL = `https://sns-video-bd.xhscdn.com/${video.consumer.originVideoKey}`; videoURL = `https://sns-video-bd.xhscdn.com/${video.consumer.originVideoKey}`;
} } else {
if (!videoURL) {
const h264Streams = video.media?.stream?.h264; const h264Streams = video.media?.stream?.h264;
if (h264Streams?.length) { if (h264Streams?.length) {