fix the condition for mconf-decrypter job to process an encrypted recording

because of the wrong condition, mconf-decrypter was reprocessing all the recordings available
This commit is contained in:
Felipe Cecagno 2015-07-04 17:02:03 -03:00
parent f9ef1b4edd
commit 6929b4817e

View File

@ -69,7 +69,7 @@ def fetchRecordings(url)
decrypted_file = File.basename(encrypted_file, '.*') + ".zip"
# can't check only for archived.done because when the file is published, the archived flag is removed
# so we check for any .done file
if not Dir.glob("#{$recording_dir}/status/**/#{record_id}*.done").empty? then
if Dir.glob("#{$recording_dir}/status/**/#{record_id}*.done").empty? then
Dir.chdir($raw_dir) do
BigBlueButton.logger.info("Next recording to be processed is #{meeting_id}")