Skip the 'ser' repair if there are no webcam videos
This was causing the sanity check to fail.
This commit is contained in:
parent
34b13eb807
commit
e1e2d78e50
@ -54,6 +54,7 @@ def check_webcam_files(raw_dir, meeting_id)
|
|||||||
|
|
||||||
BigBlueButton.logger.info("Repairing red5 serialized streams")
|
BigBlueButton.logger.info("Repairing red5 serialized streams")
|
||||||
cp="/usr/share/red5/red5-server.jar:/usr/share/red5/lib/*"
|
cp="/usr/share/red5/red5-server.jar:/usr/share/red5/lib/*"
|
||||||
|
if File.directory?("#{meeting_dir}/video/#{meeting_id}")
|
||||||
FileUtils.cd("#{meeting_dir}/video/#{meeting_id}") do
|
FileUtils.cd("#{meeting_dir}/video/#{meeting_id}") do
|
||||||
Dir.glob("*.flv.ser").each do |ser|
|
Dir.glob("*.flv.ser").each do |ser|
|
||||||
BigBlueButton.logger.info("Repairing #{ser}")
|
BigBlueButton.logger.info("Repairing #{ser}")
|
||||||
@ -63,6 +64,7 @@ def check_webcam_files(raw_dir, meeting_id)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
BigBlueButton.logger.info "Checking all webcam recorded streams from events were archived."
|
BigBlueButton.logger.info "Checking all webcam recorded streams from events were archived."
|
||||||
webcams = BigBlueButton::Events.get_start_video_events("#{raw_dir}/#{meeting_id}/events.xml")
|
webcams = BigBlueButton::Events.get_start_video_events("#{raw_dir}/#{meeting_id}/events.xml")
|
||||||
|
Loading…
Reference in New Issue
Block a user