Merge pull request #3044 from MathiusD/base-time-code-lost

Fix regression related of timestamp 0:00
このコミットが含まれているのは:
Samantaz Fox 2022-04-24 17:32:01 +02:00 committed by GitHub
コミット d4acd03698
この署名に対応する既知のキーがデータベースに存在しません
GPGキーID: 4AEE18F83AFDEB23
1個のファイルの変更1行の追加1行の削除

ファイルの表示

@ -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 >= 0
text = %(<a href="javascript:void(0)" data-onclick="jump_to_time" data-jump-time="#{length_seconds}">#{text}</a>)
else
text = %(<a href="/watch?v=#{video_id}">#{"youtube.com/watch?v=#{video_id}"}</a>)