From e190624eb0f608469f43d374dbc5d737e3eab31e Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Mon, 6 Aug 2018 23:00:39 -0500 Subject: [PATCH] Support '18m12s' format in video description timestamp --- src/invidious/comments.cr | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/invidious/comments.cr b/src/invidious/comments.cr index 8fdc40fc..575561d2 100644 --- a/src/invidious/comments.cr +++ b/src/invidious/comments.cr @@ -203,7 +203,12 @@ def add_alt_links(html) END_HTML elsif 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 #{anchor.content} END_HTML