Using nullish coalescing operator
This commit is contained in:
parent
efcdcd3481
commit
10f32f0678
@ -82,8 +82,8 @@ export async function video_basic_info(url : string, cookie? : string){
|
||||
format.push(...player_response.streamingData.adaptiveFormats)
|
||||
let LiveStreamData = {
|
||||
isLive : video_details.live,
|
||||
dashManifestUrl : (player_response.streamingData?.dashManifestUrl) ? player_response.streamingData?.dashManifestUrl : null,
|
||||
hlsManifestUrl : (player_response.streamingData?.hlsManifestUrl) ? player_response.streamingData?.hlsManifestUrl : null
|
||||
dashManifestUrl : player_response.streamingData?.dashManifestUrl ?? null,
|
||||
hlsManifestUrl : player_response.streamingData?.hlsManifestUrl ?? null
|
||||
}
|
||||
return {
|
||||
LiveStreamData,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user