|
|
@ -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"].first&.[]('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')
|
|
|
|
|
|
|
|
|
|
|
|