Fix errors in recording scripts.

Logger was apparently imported by the matterhorn stuff ?! so move that
to the main library.

Fix a variable reference in sanity.
This commit is contained in:
Calvin Walton 2016-09-03 16:08:32 -04:00
parent 8ede6d06ee
commit f112be7638
2 changed files with 2 additions and 1 deletions

View File

@ -36,6 +36,7 @@ require 'recordandplayback/generators/presentation'
require 'open4'
require 'pp'
require 'absolute_time'
require 'logger'
module BigBlueButton
class MissingDirectoryException < RuntimeError

View File

@ -44,7 +44,7 @@ def check_audio_files(raw_dir,meeting_id)
raise Exception, "Audio file #{raw_audio_file} doesn't exist in raw directory." if not File.exists?(raw_audio_file)
#checking length
info = BigBlueButton::EDL::Audio.audio_info(filename)
info = BigBlueButton::EDL::Audio.audio_info(raw_audio_file)
if info[:duration].nil? or info[:duration] == 0
raise Exception, "Audio file #{raw_audio_file} length is zero."
end