From 737697968cde4cc9a2559db923f08455b789b864 Mon Sep 17 00:00:00 2001 From: jfederico Date: Fri, 4 Nov 2016 17:04:16 -0400 Subject: [PATCH] record-and-playback: Removed preview extension (thumbnails) from recordings when only has default presentation --- .../core/lib/recordandplayback/generators/presentation.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/record-and-playback/core/lib/recordandplayback/generators/presentation.rb b/record-and-playback/core/lib/recordandplayback/generators/presentation.rb index 833c89ac82..99d5d004a4 100755 --- a/record-and-playback/core/lib/recordandplayback/generators/presentation.rb +++ b/record-and-playback/core/lib/recordandplayback/generators/presentation.rb @@ -99,11 +99,11 @@ module BigBlueButton # Set textfile directory textfiles_dir = "#{process_dir}/presentation/#{presentation_id}/textfiles" # Set presentation hashmap to be returned - presentation[:id] = presentation_id - presentation[:filename] = presentation_filename - presentation[:slides] = {} - presentation[:slides][1] = { :alt => self.get_text_from_slide(textfiles_dir, 1) } unless presentation_filename == "default.pdf" + presentation[:id] = presentation_id + presentation[:filename] = presentation_filename + presentation[:slides] = {} + presentation[:slides][1] = { :alt => self.get_text_from_slide(textfiles_dir, 1) } if File.file?("#{textfiles_dir}/slide-1.txt") presentation[:slides][2] = { :alt => self.get_text_from_slide(textfiles_dir, 2) } if File.file?("#{textfiles_dir}/slide-2.txt") presentation[:slides][3] = { :alt => self.get_text_from_slide(textfiles_dir, 3) } if File.file?("#{textfiles_dir}/slide-3.txt") # Break because something else than default.pdf was found