dev_video
cxt 5 years ago
parent e3ab087bf8
commit 92795e0573

@ -47,7 +47,7 @@ namespace :video do
Video.all.each do |video|
result = AliyunVod::Service.get_play_info(video.uuid)
puts result
play_url = result["PlayInfoList"]["PlayInfo"].first&.[]('PlayURL')
play_url = result["PlayInfoList"]["PlayInfo"].first["PlayURL"]
puts play_url
# play_url = (result.dig('PlayInfoList', 'PlayInfo') || []).first&.[]('PlayURL')

Loading…
Cancel
Save