dev_video
cxt 5 years ago
parent c3e9ad512b
commit e3ab087bf8

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

Loading…
Cancel
Save