mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-08-14.git
synced 2024-08-15 00:53:20 +00:00
Fix length seconds for videos with longer duration
This commit is contained in:
parent
7cd66e20d0
commit
bdfe170c3b
1 changed files with 2 additions and 2 deletions
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue