mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-04-11.git
synced 2024-08-15 00:43:26 +00:00
Support '18m12s' format in video description timestamp
This commit is contained in:
parent
8b572d268d
commit
e190624eb0
1 changed files with 6 additions and 1 deletions
|
@ -203,7 +203,12 @@ def add_alt_links(html)
|
||||||
</a>
|
</a>
|
||||||
END_HTML
|
END_HTML
|
||||||
elsif url.to_s == "#"
|
elsif url.to_s == "#"
|
||||||
|
begin
|
||||||
length_seconds = decode_length_seconds(anchor.content)
|
length_seconds = decode_length_seconds(anchor.content)
|
||||||
|
rescue ex
|
||||||
|
length_seconds = decode_time(anchor.content)
|
||||||
|
end
|
||||||
|
|
||||||
alt_anchor = <<-END_HTML
|
alt_anchor = <<-END_HTML
|
||||||
<a href="javascript:void(0)" onclick="player.currentTime(#{length_seconds})">#{anchor.content}</a>
|
<a href="javascript:void(0)" onclick="player.currentTime(#{length_seconds})">#{anchor.content}</a>
|
||||||
END_HTML
|
END_HTML
|
||||||
|
|
Loading…
Reference in a new issue