From 254f77944fcd398cc19cb62b82b0fdfbe6ed70ed Mon Sep 17 00:00:00 2001 From: absidue <48293849+absidue@users.noreply.github.com> Date: Wed, 10 Jan 2024 15:49:14 +0100 Subject: [PATCH] feat(VideoDetails): Add `is_live_dvr_enabled`, `is_low_latency_live_stream` and `live_chunk_readahead` (#569) --- src/parser/classes/misc/VideoDetails.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/parser/classes/misc/VideoDetails.ts b/src/parser/classes/misc/VideoDetails.ts index 393eaa49f..18bbdce56 100644 --- a/src/parser/classes/misc/VideoDetails.ts +++ b/src/parser/classes/misc/VideoDetails.ts @@ -16,9 +16,12 @@ export default class VideoDetails { is_private: boolean; is_live: boolean; is_live_content: boolean; + is_live_dvr_enabled: boolean; is_upcoming: boolean; is_crawlable: boolean; is_post_live_dvr: boolean; + is_low_latency_live_stream: boolean; + live_chunk_readahead?: number; constructor(data: RawNode) { this.id = data.videoId; @@ -35,8 +38,11 @@ export default class VideoDetails { this.is_private = !!data.isPrivate; this.is_live = !!data.isLive; this.is_live_content = !!data.isLiveContent; + this.is_live_dvr_enabled = !!data.isLiveDvrEnabled; + this.is_low_latency_live_stream = !!data.isLowLatencyLiveStream; this.is_upcoming = !!data.isUpcoming; this.is_post_live_dvr = !!data.isPostLiveDvr; this.is_crawlable = !!data.isCrawlable; + this.live_chunk_readahead = data.liveChunkReadahead; } } \ No newline at end of file