mirror of
https://github.com/wukko/cobalt.git
synced 2025-02-02 08:26:22 +01:00
api/xiaohongshu: clean up the h265-h264 if statement
Co-authored-by: jj <log@riseup.net>
This commit is contained in:
parent
e39b0ae7b3
commit
7488c74faf
1 changed files with 1 additions and 3 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue