Invidious is an alternative front-end to YouTube
Support '18m12s' format in video description timestamp
Omar Rothe190624eb0f6
diff --git a/src/invidious/comments.cr b/src/invidious/comments.crindex 8fdc40fc..575561d2 100644--- a/src/invidious/comments.cr+++ b/src/invidious/comments.cr@@ -203,7 +203,12 @@ def add_alt_links(html)</a>END_HTMLelsif url.to_s == "#"- length_seconds = decode_length_seconds(anchor.content)+ begin+ length_seconds = decode_length_seconds(anchor.content)+ rescue ex+ length_seconds = decode_time(anchor.content)+ end+alt_anchor = <<-END_HTML<a href="javascript:void(0)" onclick="player.currentTime(#{length_seconds})">#{anchor.content}</a>END_HTML