Fix length seconds for videos with longer duration

このコミットが含まれているのは:
Omar Roth 2019-05-11 10:57:58 -05:00
コミット bdfe170c3b
この署名に対応する既知のキーがデータベースに存在しません
GPGキーID: B8254FB7EC3D37F2
1個のファイルの変更2行の追加2行の削除

ファイルの表示

@ -64,8 +64,8 @@ def recode_length_seconds(time)
time = time.seconds
text = "#{time.minutes.to_s.rjust(2, '0')}:#{time.seconds.to_s.rjust(2, '0')}"
if time.hours > 0
text = "#{time.hours.to_s.rjust(2, '0')}:#{text}"
if time.total_hours.to_i > 0
text = "#{time.total_hours.to_i.to_s.rjust(2, '0')}:#{text}"
end
text = text.lchop('0')