courseware
anke1460 5 years ago
parent 495cebdd25
commit 1e84cf48af

@ -82,7 +82,7 @@ namespace :video do
result = AliyunVod::Service.get_play_info(v.uuid) result = AliyunVod::Service.get_play_info(v.uuid)
if result.present? && result["VideoBase"]["Duration"].present? if result.present? && result["VideoBase"]["Duration"].present?
p '-----#{v.id} , #{result["VideoBase"]["Duration"]]}' p '-----#{v.id} , #{result["VideoBase"]["Duration"]]}'
video.update(duration: result["VideoBase"]["Duration"]) v.update(duration: result["VideoBase"]["Duration"])
end end
end end

Loading…
Cancel
Save