From 92795e05730409b14089bc712ae4d26df9b5c25d Mon Sep 17 00:00:00 2001 From: cxt <853663049@qq.com> Date: Thu, 6 Feb 2020 19:23:14 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/tasks/get_video_data.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks/get_video_data.rake b/lib/tasks/get_video_data.rake index 6daacc49f..7908a133c 100644 --- a/lib/tasks/get_video_data.rake +++ b/lib/tasks/get_video_data.rake @@ -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')