Skip to content

Commit

Permalink
remove checked first warning
Browse files Browse the repository at this point in the history
  • Loading branch information
werrpy committed Dec 6, 2022
1 parent 7620647 commit 3e40287
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions vdator/checks/audio_track_conversions.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ def get_reply(self):
len_bdinfo = len(self.bdinfo["audio"])
len_mediainfo = len(self.mediainfo["audio"])
min_len = min(len_bdinfo, len_mediainfo)
max_len = max(len_bdinfo, len_mediainfo)
diff_len = abs(max_len - min_len)

for i in range(0, min_len):
# audio = dict{'name':'...', 'language':'...'}
Expand Down Expand Up @@ -200,13 +198,11 @@ def get_reply(self):
+ ": Missing track name",
)

if diff_len > 0:
if min_len < len_mediainfo:
reply += self.reporter.print_report(
"warning",
"Checked first `{}/{}` audio tracks".format(min_len, max_len),
"Checked first `{}/{}` audio tracks".format(min_len, len_mediainfo),
)
if len_bdinfo > len_mediainfo:
reply += "Did you forget to add a minus (-) sign in front of unused audio tracks in bdinfo?\n"

return reply

Expand Down

0 comments on commit 3e40287

Please sign in to comment.