Invidious is an alternative front-end to YouTube
Fix regression related of timestamp 0:00
Féry Mathieu (Mathius)da53de209758
diff --git a/src/invidious/comments.cr b/src/invidious/comments.crindex 002983ee..c6e7fd17 100644--- a/src/invidious/comments.cr+++ b/src/invidious/comments.cr@@ -596,7 +596,7 @@ def content_to_comment_html(content)length_seconds = watch_endpoint["startTimeSeconds"]?video_id = watch_endpoint["videoId"].as_s- if length_seconds && length_seconds.as_i > 0+ if length_seconds && length_seconds.as_i >= 0text = %(<a href="javascript:void(0)" data-onclick="jump_to_time" data-jump-time="#{length_seconds}">#{text}</a>)elsetext = %(<a href="/watch?v=#{video_id}">#{"youtube.com/watch?v=#{video_id}"}</a>)