feat: Support auto-dubbed audio tracks (#786)

This commit is contained in:
absidue
2024-10-26 22:54:12 +02:00
committed by GitHub
parent 0081e11ebc
commit a4ef2249ff
2 changed files with 4 additions and 2 deletions

View File

@@ -57,6 +57,7 @@ export default class Format {
has_text: boolean;
language?: string | null;
is_dubbed?: boolean;
is_auto_dubbed?: boolean;
is_descriptive?: boolean;
is_secondary?: boolean;
is_original?: boolean;
@@ -217,7 +218,8 @@ export default class Format {
this.is_dubbed = audio_content === 'dubbed';
this.is_descriptive = audio_content === 'descriptive';
this.is_secondary = audio_content === 'secondary';
this.is_original = audio_content === 'original' || (!this.is_dubbed && !this.is_descriptive && !this.is_secondary && !this.is_drc);
this.is_auto_dubbed = audio_content === 'dubbed-auto';
this.is_original = audio_content === 'original' || (!this.is_dubbed && !this.is_descriptive && !this.is_secondary && !this.is_auto_dubbed && !this.is_drc);
}
// Some text tracks don't have xtags while others do