From 0c2eaf5f11b3b2c62809828b9285ff5d0c990f38 Mon Sep 17 00:00:00 2001 From: jfederico Date: Tue, 9 Feb 2016 17:26:29 -0500 Subject: [PATCH] record-and-playback: Fixed bug in original state of recordings. --- .../presentation/scripts/publish/presentation.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/record-and-playback/presentation/scripts/publish/presentation.rb b/record-and-playback/presentation/scripts/publish/presentation.rb index 61dffd5677..1cd777c2f3 100755 --- a/record-and-playback/presentation/scripts/publish/presentation.rb +++ b/record-and-playback/presentation/scripts/publish/presentation.rb @@ -997,11 +997,13 @@ begin recording = metadata.root state = recording.at_xpath("state") state.content = "published" + published = recording.at_xpath("published") + published.content = "true" ## Remove empty playback metadata.search('//recording/playback').each do |playback| playback.remove end - ## Update status and add the actual playback + ## Add the actual playback metadata_with_playback = Nokogiri::XML::Builder.with(metadata.at('recording')) do |xml| xml.playback { xml.format("presentation")