diff --git a/record-and-playback/podcast/scripts/process/podcast.rb b/record-and-playback/podcast/scripts/process/podcast.rb index 0c03377625632a986578ff7c398295506f01c981..2519f381a84dab6ce61b5d5cbc78edc8ae10d8e2 100755 --- a/record-and-playback/podcast/scripts/process/podcast.rb +++ b/record-and-playback/podcast/scripts/process/podcast.rb @@ -114,7 +114,7 @@ if not FileTest.directory?(target_dir) end participants = recording.at_xpath("participants") - participants.content = BigBlueButton::Events.get_num_participants("#{raw_archive_dir}/events.xml") + participants.content = BigBlueButton::Events.get_num_participants(@doc) ## Remove empty meta metadata.search('//recording/meta').each do |meta| diff --git a/record-and-playback/podcast/scripts/publish/podcast.rb b/record-and-playback/podcast/scripts/publish/podcast.rb index 6ec3bcfcc1e1a60ad2f641885711eacc71190290..e8f2b8b5428de834b703bb056f93d3d83d9bb260 100755 --- a/record-and-playback/podcast/scripts/publish/podcast.rb +++ b/record-and-playback/podcast/scripts/publish/podcast.rb @@ -70,7 +70,8 @@ begin BigBlueButton.logger.info("copying: #{process_dir}/audio.ogg to -> #{target_dir}") FileUtils.cp("#{process_dir}/audio.ogg", target_dir) - recording_time = BigBlueButton::Events.get_recording_length("#{raw_archive_dir}/events.xml") + @doc = Nokogiri::XML(File.open("#{raw_archive_dir}/events.xml")) + recording_time = BigBlueButton::Events.get_recording_length(@doc) BigBlueButton.logger.info("Creating metadata.xml")