Using nullish coalescing operator

This commit is contained in:
슈리튬 2021-09-08 00:36:08 +09:00 committed by GitHub
parent efcdcd3481
commit 10f32f0678
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -82,8 +82,8 @@ export async function video_basic_info(url : string, cookie? : string){
format.push(...player_response.streamingData.adaptiveFormats) format.push(...player_response.streamingData.adaptiveFormats)
let LiveStreamData = { let LiveStreamData = {
isLive : video_details.live, isLive : video_details.live,
dashManifestUrl : (player_response.streamingData?.dashManifestUrl) ? player_response.streamingData?.dashManifestUrl : null, dashManifestUrl : player_response.streamingData?.dashManifestUrl ?? null,
hlsManifestUrl : (player_response.streamingData?.hlsManifestUrl) ? player_response.streamingData?.hlsManifestUrl : null hlsManifestUrl : player_response.streamingData?.hlsManifestUrl ?? null
} }
return { return {
LiveStreamData, LiveStreamData,