mirror of
https://github.com/YuzuZensai/play-dl-test.git
synced 2026-01-30 20:24:25 +00:00
Fixed Formats error
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
import { request } from './request';
|
import { request } from './request';
|
||||||
import { format_decipher, js_tokens } from './cipher';
|
import { format_decipher } from './cipher';
|
||||||
import { Video } from '../classes/Video';
|
import { Video } from '../classes/Video';
|
||||||
import { PlayList } from '../classes/Playlist';
|
import { PlayList } from '../classes/Playlist';
|
||||||
|
|
||||||
@@ -90,8 +90,8 @@ export async function video_basic_info(url: string, cookie?: string) {
|
|||||||
live: vid.isLiveContent,
|
live: vid.isLiveContent,
|
||||||
private: vid.isPrivate
|
private: vid.isPrivate
|
||||||
};
|
};
|
||||||
if (!video_details.live) format.push(player_response.streamingData.formats[0]);
|
format.push(...player_response.streamingData.formats ?? []);
|
||||||
format.push(...player_response.streamingData.adaptiveFormats);
|
format.push(...player_response.streamingData.adaptiveFormats ?? []);
|
||||||
const LiveStreamData = {
|
const LiveStreamData = {
|
||||||
isLive: video_details.live,
|
isLive: video_details.live,
|
||||||
dashManifestUrl: player_response.streamingData?.dashManifestUrl ?? null,
|
dashManifestUrl: player_response.streamingData?.dashManifestUrl ?? null,
|
||||||
|
|||||||
Reference in New Issue
Block a user