Skip to content

Commit e17cc40

Browse files
authored
Merge branch 'master' into add-exception
2 parents bc73d63 + e6b2a4f commit e17cc40

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

audioqc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ end
4444
# If no extenstion is specified it will target the default 'wav' extension. (Not case sensitive)
4545
options = []
4646
ARGV.options do |opts|
47-
opts.on('-a', '--all') { options += ['meta', 'bext', 'signal', 'dropouts', 'md5'] }
47+
opts.on('-a', '--all') { options += ['meta', 'bext', 'signal', 'md5'] }
4848
opts.on('-b', '--bext-scan') { options << 'bext' }
4949
opts.on('-c', '--checksum') { options << 'md5' }
5050
opts.on('-d', '--dropout-scan') { options << 'dropouts' }
@@ -250,10 +250,10 @@ class QcTarget
250250
@qc_results = []
251251
policy_path = File.path(policy)
252252
command = 'mediaconch --Policy=' + '"' + policy_path + '" ' + '"' + @input_path + '"'
253-
media_conch_out = `#{command}`
253+
media_conch_out = `#{command}`.gsub(@input_path, "")
254254
media_conch_out.strip!
255255
media_conch_out.split('/n').each {|qcline| @qc_results << qcline}
256-
@qc_results = @qc_results.to_s
256+
@qc_results = @qc_results.to_s.gsub('\n -- ', '; ')
257257
if File.exist?(policy)
258258
if @qc_results.include?('pass!')
259259
@qc_results = 'PASS'
@@ -349,6 +349,7 @@ end
349349

350350
file_inputs.each do |fileinput|
351351
begin
352+
puts "Scanning: #{fileinput}"
352353
targetPath = File.expand_path(fileinput)
353354
target = QcTarget.new(targetPath)
354355
target.get_mediainfo

0 commit comments

Comments
 (0)