lib/sorenson/services/asset.rb in 360_services-1.0.9 vs lib/sorenson/services/asset.rb in 360_services-1.0.10
- old
+ new
@@ -169,10 +169,10 @@
@file_size = data['file_size']
@thumbnail_image_url = data['thumbnail_image_url']
@direct_asset_url = data['direct_asset_url']
@group_id = data['group_id']
@embed_list = data['embed_list']
- @video_guid = @embed_list.empty? ? nil : @embed_list.first[1].match(/videoGUID=(.*?)&/)[1]
+ @video_guid = @embed_list.empty? ? nil : @embed_list.to_a.first[1].match(/videoGUID=(.*?)&/)[1]
end
end
end
end
\ No newline at end of file