kopia lustrzana https://github.com/iv-org/invidious
Support '18m12s' format in video description timestamp
rodzic
8b572d268d
commit
e190624eb0
|
@ -203,7 +203,12 @@ def add_alt_links(html)
|
|||
</a>
|
||||
END_HTML
|
||||
elsif url.to_s == "#"
|
||||
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
|
||||
|
|
Ładowanie…
Reference in New Issue