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:
parent
8ede6d06ee
commit
f112be7638
@ -36,6 +36,7 @@ require 'recordandplayback/generators/presentation'
|
||||
require 'open4'
|
||||
require 'pp'
|
||||
require 'absolute_time'
|
||||
require 'logger'
|
||||
|
||||
module BigBlueButton
|
||||
class MissingDirectoryException < RuntimeError
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user