Skip to content

Commit

Permalink
feat(VideoDetails): Add is_live_dvr_enabled, `is_low_latency_live_s…
Browse files Browse the repository at this point in the history
…tream` and `live_chunk_readahead` (#569)
  • Loading branch information
absidue committed Jan 10, 2024
1 parent 586bb5f commit 254f779
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/parser/classes/misc/VideoDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
}
}

0 comments on commit 254f779

Please sign in to comment.