Skip to content

Commit

Permalink
feat(Format): Add max_dvr_duration_sec and target_duration_dec (#570
Browse files Browse the repository at this point in the history
)
  • Loading branch information
absidue authored Jan 10, 2024
1 parent 562e6a2 commit 586bb5f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/parser/classes/misc/Format.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ export default class Format {
audio_sample_rate?: number;
audio_channels?: number;
loudness_db?: number;
max_dvr_duration_sec?: number;
target_duration_dec?: number;
has_audio: boolean;
has_video: boolean;
language?: string | null;
Expand Down Expand Up @@ -90,6 +92,8 @@ export default class Format {
this.audio_sample_rate = parseInt(data.audioSampleRate);
this.audio_channels = data.audioChannels;
this.loudness_db = data.loudnessDb;
this.max_dvr_duration_sec = data.maxDvrDurationSec;
this.target_duration_dec = data.targetDurationSec;
this.has_audio = !!data.audioBitrate || !!data.audioQuality;
this.has_video = !!data.qualityLabel;

Expand Down

0 comments on commit 586bb5f

Please sign in to comment.