Skip to content
Snippets Groups Projects
Unverified Commit 5f828997 authored by Calvin Walton's avatar Calvin Walton Committed by GitHub
Browse files

Merge pull request #6345 from pedrobmarin/podcast-fix

Fixes podcast undefined method xpath errors
parents 20386334 4e3ec0f9
No related branches found
No related tags found
No related merge requests found
......@@ -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|
......
......@@ -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")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment