Skip to content

Commit

Permalink
fix(Format): Fix is_original always being true (#492)
Browse files Browse the repository at this point in the history
  • Loading branch information
absidue authored Aug 29, 2023
1 parent 10c15bf commit 0412fa0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parser/classes/misc/Format.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export default class Format {
this.language = xtags?.find((x: string) => x.startsWith('lang='))?.split('=')[1] || null;
this.is_dubbed = audio_content === 'dubbed';
this.is_descriptive = audio_content === 'descriptive';
this.is_original = audio_content === 'original' || !this.is_dubbed || !this.is_descriptive;
this.is_original = audio_content === 'original' || (!this.is_dubbed && !this.is_descriptive);

if (Reflect.has(data, 'audioTrack')) {
this.audio_track = {
Expand Down

0 comments on commit 0412fa0

Please sign in to comment.