summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorsyeopite <syeopite@syeopite.dev>2023-08-28 23:14:25 -0700
committersyeopite <syeopite@syeopite.dev>2023-09-23 09:41:43 -0400
commita999438ae46739477a6ca5f8515fa70b6b492443 (patch)
tree97abcfdac1e3eb1c937e21c3fdc103038c40d344 /src
parente9d59a6dfd14fd115f3bfc59ca6f33182a631575 (diff)
downloadinvidious-a999438ae46739477a6ca5f8515fa70b6b492443.tar.gz
invidious-a999438ae46739477a6ca5f8515fa70b6b492443.tar.bz2
invidious-a999438ae46739477a6ca5f8515fa70b6b492443.zip
Consistency: rename #add_timestamp_component
Removes the add_ prefix for consistency with the other methods in WebVTT::Builder
Diffstat (limited to 'src')
-rw-r--r--src/invidious/helpers/webvtt.cr6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/invidious/helpers/webvtt.cr b/src/invidious/helpers/webvtt.cr
index aace6bb8..56f761ed 100644
--- a/src/invidious/helpers/webvtt.cr
+++ b/src/invidious/helpers/webvtt.cr
@@ -15,14 +15,14 @@ module WebVTT
end
private def timestamp(start_time : Time::Span, end_time : Time::Span)
- add_timestamp_component(start_time)
+ timestamp_component(start_time)
@io << " --> "
- add_timestamp_component(end_time)
+ timestamp_component(end_time)
@io << '\n'
end
- private def add_timestamp_component(timestamp : Time::Span)
+ private def timestamp_component(timestamp : Time::Span)
@io << timestamp.hours.to_s.rjust(2, '0')
@io << ':' << timestamp.minutes.to_s.rjust(2, '0')
@io << ':' << timestamp.seconds.to_s.rjust(2, '0')