Invidious is an alternative front-end to YouTube
Fix length seconds for videos with longer duration
Omar Rothbdfe170c3b87
diff --git a/src/invidious/helpers/utils.cr b/src/invidious/helpers/utils.crindex c1aea5b2..9bdb6a7e 100644--- a/src/invidious/helpers/utils.cr+++ b/src/invidious/helpers/utils.cr@@ -64,8 +64,8 @@ def recode_length_seconds(time)time = time.secondstext = "#{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}"endtext = text.lchop('0')