|
|
@ -48,6 +48,7 @@ namespace :video do
|
|
|
|
result = AliyunVod::Service.get_play_info(video.uuid)
|
|
|
|
result = AliyunVod::Service.get_play_info(video.uuid)
|
|
|
|
puts result
|
|
|
|
puts result
|
|
|
|
play_url = data[:PlayInfoList][:PlayInfo][:PlayURL]
|
|
|
|
play_url = data[:PlayInfoList][:PlayInfo][:PlayURL]
|
|
|
|
|
|
|
|
puts play_url
|
|
|
|
# play_url = (result.dig('PlayInfoList', 'PlayInfo') || []).first&.[]('PlayURL')
|
|
|
|
# play_url = (result.dig('PlayInfoList', 'PlayInfo') || []).first&.[]('PlayURL')
|
|
|
|
|
|
|
|
|
|
|
|
video.update!(play_url: play_url) if play_url.present?
|
|
|
|
video.update!(play_url: play_url) if play_url.present?
|
|
|
|