diff --git a/lib/tasks/video_transcode.rake b/lib/tasks/video_transcode.rake index 78a8d5c24..2b4a1eac7 100644 --- a/lib/tasks/video_transcode.rake +++ b/lib/tasks/video_transcode.rake @@ -15,5 +15,6 @@ namespace :video_transcode do end puts "###########转码个数:#{i.size}" puts "###########id,file_url, codecnamne:#{i}" + Video.where(transcoded: false).update_all(transcoded: true) end end \ No newline at end of file