dev_video
cxt 5 years ago
parent 2f78dc009c
commit c3e9ad512b

@ -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][:PlayURL]
play_url = result["PlayInfoList"]["PlayInfo"]["PlayURL"]
puts play_url
# play_url = (result.dig('PlayInfoList', 'PlayInfo') || []).first&.[]('PlayURL')

Loading…
Cancel
Save